Skip to main content
← All vulnerabilities
CVE-2025-22145GHSA-J3F9-P6HM-5W6Q

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.72.6, 3.8.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • CarbonPHP carbon

    fixed in 2.72.6; From 3.0.0 · fixed in 3.8.4

  • nesbot/carbonPackagist

    From 3.0.0 · fixed in 3.8.4

  • nesbot/carbonPackagist

    fixed in 2.72.6

References 2

GitHub · CarbonPHP/carbon

GitHub · briannesbitt/Carbon