CVE-2025-22145 — Vulnerability in nesbot/carbon — CVE Details
Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.11%). Schedule for your next planned update.
Summary
Advisory Timeline
- First published January 8, 2025 (642 days ago).
- Last revised February 25, 2025 — 48 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "nesbot/carbon:^2.72.6"
composer require "nesbot/carbon:^3.8.4"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| nesbot/carbon | packagist | 1.0.0, 1.0.1, 1.1.0, 1.10.0 (+218 more) | 2.72.6 |
| nesbot/carbon | packagist | 3.0.0, 3.0.1, 3.0.2, 3.1.0 (+16 more) | 3.8.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-98
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.8 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/CarbonPHP/carbon/security/advisories/GHSA-j3f9-p6hm-5w6qWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-22145ADVISORY
- https://github.com/briannesbitt/Carbon/commit/129700ed449b1f02d70272d2ac802357c8c30c58WEB
- https://github.com/CarbonPHP/carbonPACKAGE
- https://lists.debian.org/debian-lts-announce/2025/02/msg00032.htmlWEB
Frequently Asked Questions
- What is CVE-2025-22145?
- Carbon has an arbitrary file include via unvalidated input passed to Carbon::setLocale This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.8/10).
- How do I check if my project is affected by CVE-2025-22145?
- CVE-2025-22145 affects nesbot/carbon. It has a 0.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-22145 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
This is a below-median EPSS score — only 30% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-75592MEDIUM
Kirby: Access to image files outside of the site root via path traversal in the media handling
- CVE-2026-88023MEDIUM
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies