Medium severityNVD Advisory· Published Jan 8, 2025· Updated Apr 15, 2026
CVE-2025-22145
CVE-2025-22145
Description
Carbon is an international PHP extension for DateTime. 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. This vulnerability is fixed in 3.8.4 and 2.72.6.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
nesbot/carbonPackagist | >= 3.0.0, < 3.8.4 | 3.8.4 |
nesbot/carbonPackagist | < 2.72.6 | 2.72.6 |
Patches
3129700ed449b1e9d50601e70129700ed449bVulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-j3f9-p6hm-5w6qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-22145ghsaADVISORY
- github.com/CarbonPHP/carbon/security/advisories/GHSA-j3f9-p6hm-5w6qnvdWEB
- github.com/briannesbitt/Carbon/commit/129700ed449b1f02d70272d2ac802357c8c30c58nvdWEB
- lists.debian.org/debian-lts-announce/2025/02/msg00032.htmlnvdWEB
News mentions
0No linked articles in our index yet.