Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 9, 2025

This PR contains the following updates:

Package Change Age Confidence
nesbot/carbon (source) 2.72.52.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

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 2 times, most recently from 174e1fa to b6015c3 Compare February 4, 2025 04:57
@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch from b6015c3 to a559232 Compare April 1, 2025 12:42
@coderabbitai
Copy link

coderabbitai bot commented Apr 1, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch 2 times, most recently from e99b4d6 to b78f62d Compare August 14, 2025 11:02
@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch from b78f62d to dfd0730 Compare September 25, 2025 18:59
@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch from dfd0730 to 0fa97bf Compare October 8, 2025 13:20
@renovate renovate bot force-pushed the renovate/packagist-nesbot-carbon-vulnerability branch from 0fa97bf to aac5f3c Compare November 19, 2025 23:52
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.

1 participant