Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 10, 2025

This PR contains the following updates:

Package Change Age Confidence
nesbot/carbon (source) 2.70.02.72.6 age confidence

GitHub Vulnerability Alerts

CVE-2025-22145

Impact

Application passing unsanitized user input to Carbon::setLocale are at risk of arbitrary file include, if the application allows users to upload files with .php extension in an folder that allows include or require to read it, then they are at risk of arbitrary code ran on their servers.

Patches

Workarounds

Any of the below actions can be taken to prevent the issue:

  • Validate input before calling setLocale(), for instance by forbidding or removing / and \
  • Call setLocale() only with a locale from a whitelist of supported locales
  • When uploading files, rename them so they cannot have a .php extension (this is recommended even if you're not affected by this issue)
  • Prefer storage system that are not local to the application (remote service, or local service ran by another user so the uploaded files actually live outside of the application basedir)

References

https://en.wikipedia.org/wiki/File_inclusion_vulnerability

Credits

Thanks to Szczepan Hołyszewski who reported the issue and to Tidelift to coordinate the resolution


Release Notes

CarbonPHP/carbon (nesbot/carbon)

v2.72.6

Compare Source

Complete commits list: CarbonPHP/carbon@2.72.5...2.72.6

Summary:

  • Validate locale earlier

v2.72.5

Compare Source

v2.72.4

Compare Source

v2.72.3

Compare Source

v2.72.2

Compare Source

v2.72.1

Compare Source

v2.72.0

Compare Source

v2.71.0

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch from 3e3afcf to e79255b Compare August 11, 2025 23:28
@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch from e79255b to dcdd400 Compare December 15, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants