CVE-2025-22145
MEDIUM 6.3CVSS 4.0Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
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.
- Published
- 8 Jan 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-98
- Also known as
- GHSA-j3f9-p6hm-5w6q
- Sources
- NVDJSONOSV GHSA-j3f9-p6hm-5w6qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | nesbot/carbon | >= 3.0.0, < 3.8.4 | 3.8.4 |
| OSV | Packagist | nesbot/carbon | < 2.72.6 | 2.72.6 |
References
- https://github.com/CarbonPHP/carbon/security/advisories/GHSA-j3f9-p6hm-5w6q · WEB
- https://github.com/briannesbitt/Carbon/commit/129700ed449b1f02d70272d2ac802357c8c30c58 · WEB
- https://lists.debian.org/debian-lts-announce/2025/02/msg00032.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-22145 · ADVISORY
- https://github.com/CarbonPHP/carbon · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 8 Jan 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Jan 2025)