Skip to main content
VulnerabilityPublished

CVE-2025-22145: php-nesbot-carbon vulnerability

Affects php-nesbot-carbonSource GCVE Database

0
Compare

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

Severity
High

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

  1. Disclosed: evidence found.

    CVE published 1 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu Pro 20.04 LTSphp-nesbot-carbonpkg:deb/ubuntu/php-nesbot-carbon?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.27.0-2ubuntu0.1~esm1
Fixed in
  • 1.27.0-2ubuntu0.1~esm1
Packagistnesbot/carbonpkg:composer/nesbot/carbonOther threatsAffected
  • 3.0.0 – 3.8.3
  • >=3.0.0 <3.8.4
20 affected builds
Fixed in
  • 3.8.4
Packagistnesbot/carbonpkg:composer/nesbot/carbonOther threatsAffected
  • <2.72.6
Fixed in
  • 2.72.6

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.

References

Community reviews

Loading reviews…