CVE-2025-22145: Carbonphp Carbon

Medium severity, CVSS 6.3. EPSS: 0.7% chance of exploitation in the next 30 days.

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 products

  • Carbonphp Carbon: before 2.72.6 (fixed in 2.72.6); from 3.0.0, before 3.8.4 (fixed in 3.8.4)

Published 2025-01-08. Last modified 2026-06-17.