Read the docs
TI-2025-16093 Aliases CVE-2025-22145GHSA-j3f9-p6hm-5w6q

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

Priority LOW 29CWE-98Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-98.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00753 55th percentileScored 2026-11-07
Fix Fixed carbon (CarbonPHP): 2.72.6, 3.8.4nesbot/carbon (Packagist): 3.8.4, 2.72.6

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
CarbonPHPcarbonbefore 2.72.6; 3.0.0 to before 3.8.42.72.6, 3.8.4Patch availableCNA
—nesbot/carbon (Packagist)3.0.0 to before 3.8.43.8.4Patch availableGHSA-j3f9-p6hm-5w6q
—nesbot/carbon (Packagist)before 2.72.62.72.6Patch availableGHSA-j3f9-p6hm-5w6q
  • carbon VendorCarbonPHP Affected before 2.72.6; 3.0.0 to before 3.8.4 Fixed in 2.72.6, 3.8.4 Patch available CNA
  • nesbot/carbon (Packagist) Vendor— Affected 3.0.0 to before 3.8.4 Fixed in 3.8.4 Patch available GHSA-j3f9-p6hm-5w6q
  • nesbot/carbon (Packagist) Vendor— Affected before 2.72.6 Fixed in 2.72.6 Patch available GHSA-j3f9-p6hm-5w6q

Remediation

  • Fix · CNA carbon (CarbonPHP) Fixed in 2.72.6, 3.8.4
  • Fix · GHSA-j3f9-p6hm-5w6q nesbot/carbon (Packagist) Fixed in 3.8.4 Advisory →
  • Fix · GHSA-j3f9-p6hm-5w6q nesbot/carbon (Packagist) Fixed in 2.72.6 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-22145
  2. 2026-10-03 Alias added: GHSA-j3f9-p6hm-5w6q

References

Sources