Vulnerability
CVE-2025-22145
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.
4 advisories report this vulnerability, across 3 ecosystems.
Advisories
-
DEBIAN-CVE-2025-22145
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…
-
DLA-4068-1
php-nesbot-carbon - security update
-
GHSA-j3f9-p6hm-5w6q
Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
-
UBUNTU-CVE-2025-22145
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…