CVEfocus › CVE database › CVE-2025-22145

CVE-2025-22145Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale

CVSS 6.3 MediumEPSS 1.0% (higher than 62% of CVEs)Published 2025-01-08Updated 2025-02-25Assigner: GitHub_M

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.

CWE-98

What to do

Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04php-nesbot-carbonFix pendingUBUNTU-CVE-2025-22145
Debian 14php-nesbot-carbonFixed2.72.6-1DEBIAN-CVE-2025-22145
Debian 13php-nesbot-carbonFixed2.72.6-1DEBIAN-CVE-2025-22145
Debian 12php-nesbot-carbonFixed2.65.0-1+deb12u1DEBIAN-CVE-2025-22145
Packagist librarynesbot/carbonFixed2.72.6GHSA-j3f9-p6hm-5w6q

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.