CVE-2025-22145CWE-98
Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
Medium · published January 8, 2025
What it is
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.
The record
Technical detail
- CVSS v4.0
- 6.3 · MEDIUM
- Vector
- 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
- EPSS
- 0.00753 · 54.5th percentile
- Weakness
- CWE-98 · Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
- Published
- 2025-01-08T20:40Z
EPSS history
Timeline