CVE-2025-22145

Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale

MEDIUM
6.3
CVSS Score
Published: January 8, 2025 at 08:40 PM UTC
Updated: June 17, 2026 at 08:45 AM UTC
1 product affected across 1 vendorCarbon

Using carbon by CarbonPHP?

Get instant alerts when new vulnerabilities affect carbon - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.3
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.72.6v < 3.8.4
Affected range stops below 2.72.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.8.4, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.3MEDIUMGitHub_M
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-98

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card