Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-98.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| CarbonPHP | carbon | before 2.72.6; 3.0.0 to before 3.8.4 | 2.72.6, 3.8.4 | Patch available | CNA |
| — | nesbot/carbon (Packagist) | 3.0.0 to before 3.8.4 | 3.8.4 | Patch available | GHSA-j3f9-p6hm-5w6q |
| — | nesbot/carbon (Packagist) | before 2.72.6 | 2.72.6 | Patch available | GHSA-j3f9-p6hm-5w6q |
- carbon VendorCarbonPHP Affected before 2.72.6; 3.0.0 to before 3.8.4 Fixed in 2.72.6, 3.8.4 Patch available CNA
- nesbot/carbon (Packagist) Vendor— Affected 3.0.0 to before 3.8.4 Fixed in 3.8.4 Patch available GHSA-j3f9-p6hm-5w6q
- nesbot/carbon (Packagist) Vendor— Affected before 2.72.6 Fixed in 2.72.6 Patch available GHSA-j3f9-p6hm-5w6q
Remediation
- Fix · CNA carbon (CarbonPHP) Fixed in 2.72.6, 3.8.4
- Fix · GHSA-j3f9-p6hm-5w6q nesbot/carbon (Packagist) Fixed in 3.8.4 Advisory →
- Fix · GHSA-j3f9-p6hm-5w6q nesbot/carbon (Packagist) Fixed in 2.72.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-22145
- 2026-10-03 Alias added: GHSA-j3f9-p6hm-5w6q
References
Sources
- CVE-2025-22145 · CVE Program
- CVE-2025-22145 · NVD
- FIRST EPSS
- GHSA-j3f9-p6hm-5w6q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences