cve.bz

CVE-2025-22145 carbonphp carbon: Remote file include

6.3 mediumEPSS 0.8%Fix available

Medium (6.3) in carbonphp carbon. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in nesbot/carbon 2.72.6, 3.8.4.

On this page
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.

Severity

CVSS 4.0

6.3 medium
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.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program (Remote file include)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-22145 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22145?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22145?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22145 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
CarbonPHP carbon< 2.72.6
CarbonPHP carbon>= 3.0.0, < 3.8.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j3f9-p6hm-5w6qPackagistnesbot/carbon>=3.0.0 <3.8.43.8.4
GHSA-j3f9-p6hm-5w6qPackagistnesbot/carbon<2.72.62.72.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11php-nesbot-carbon2.32.2-1+deb11u1DLA-4068-1
Debian12php-nesbot-carbon2.65.0-1+deb12u1DEBIAN-CVE-2025-22145
Debian13, 14php-nesbot-carbon2.72.6-1DEBIAN-CVE-2025-22145
Ubuntu20.04:LTSphp-nesbot-carbonno fix listedUBUNTU-CVE-2025-22145

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-193 PHP Remote File Inclusion Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON