CVE-2025-22145

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

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.

Category

6.3
CVSS
Severity: Medium
CVSS 4.0 •
EPSS 0.04%
Affected: CarbonPHP carbon
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-22145?
CVE-2025-22145 has been scored as a medium severity vulnerability.
How to fix CVE-2025-22145?
To fix CVE-2025-22145, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-22145 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-22145 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-22145?
CVE-2025-22145 affects CarbonPHP carbon.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.