CVE-2025-22145
published medium CVSS 4.0 · 6.3Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| CarbonPHP | — | carbon< 2.72.6 · >= 3.0.0, < 3.8.4 | Affected | Not stated | GitHub_M |
| Debian | bullseye | php-nesbot-carbon | Advisory build | 2.32.2-1+deb11u1 | DLA-4068-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| CarbonPHP | carbon | < 2.72.6 (affected)>= 3.0.0, < 3.8.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-98 CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
References
3Provider assertions
3GitHub_M · cna
Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- bcf1c6e2399d593bced85d281a31d4c6b68c0c0424c8ebb5e1761b36c0af4830
- Ingested
- 23 Sep 2026, 08:40:04 UTC
- Source record
- Official CVE record