CVE-2025-22145: php-nesbot-carbon vulnerability
Affects php-nesbot-carbonSource GCVE Database
Not known to be exploited · fixed in 1.27.0-2ubuntu0.1~esm1 : patch php-nesbot-carbon soon.
Data as of 2 Dec 2026, 03:03 UTC
Rated High by Threat Radar's AI analysis · CVSS not yet scored by NVD
- Patch
- Available – fixed in 1.27.0-2ubuntu0.1~esm1, 3.8.4, 2.72.6
Exploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade the Ubuntu php-nesbot-carbon package to 1.27.0-2ubuntu0.1~esm1; nesbot/carbon to 3.8.4; nesbot/carbon to 2.72.6.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 20.04 LTSphp-nesbot-carbonpkg:deb/ubuntu/php-nesbot-carbon?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Packagistnesbot/carbonpkg:composer/nesbot/carbonOther threats | Affected
| Fixed in
|
Packagistnesbot/carbonpkg:composer/nesbot/carbonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available and users should update php-nesbot-carbon to version 1.27.0-2ubuntu0.1~esm1 or later. For Ubuntu 20.04 LTS users, applying the standard system update or using Ubuntu Pro with Extended Security Maintenance (ESM) will address the vulnerability. No additional mitigation steps are required beyond applying the official update.
Description
A vulnerability in the php-nesbot-carbon library was discovered where locale names were not properly validated. This flaw could allow a remote attacker to include arbitrary files and execute arbitrary code if the application passes unsanitized user input as a locale and permits uploading files with a .php extension. The issue affects certain versions of the package used in Ubuntu 20.04 LTS. A patch is available to address this vulnerability.