{"id":"CVE-2025-22145","published":"2025-01-08T20:40:37Z","modified":"2025-02-25T13:07:45Z","title":"Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale","vendor":"CarbonPHP","product":"carbon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00753,"percentile":0.55978,"provenance":"source"},"cwes":[{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"}],"references":[{"url":"https://github.com/CarbonPHP/carbon/security/advisories/GHSA-j3f9-p6hm-5w6q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/briannesbitt/Carbon/commit/129700ed449b1f02d70272d2ac802357c8c30c58","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00032.html","tags":[]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":11.2},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"carbonphp","affectedVersions":[{"vendor":"CarbonPHP","product":"carbon","versions":["< 2.72.6",">= 3.0.0, < 3.8.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-09T16:01:55.619691Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"nesbot/carbon","vulnerableRanges":[">=3.0.0, <3.8.4","<2.72.6"],"patched":["3.8.4","2.72.6"],"from":["GHSA-j3f9-p6hm-5w6q"],"provenance":"source"}],"summary":{"text":"The Carbon PHP extension for DateTime (product \"carbon\", vendor CarbonPHP) contains a flaw where unsanitized user input passed to Carbon::setLocale can lead to arbitrary file inclusion. An attacker with network access and no privileges or user interaction could exploit it by abusing the application's handling of locale input, provided the application lets users upload .php files into a directory that PHP include or require statements can read, which would allow arbitrary code execution on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:54Z"},"euvd":{"id":"EUVD-2025-0030","exploited":false,"provenance":"source"}}