CVE catalog

CVE-2025-22145

php-nesbot-carbon: CVE-2025-22145

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.75% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-nesbot-carbonsid3.15.1-1fixed
Debianphp-nesbot-carbonforky3.10.3-3fixed
Debianphp-nesbot-carbontrixie2.73.0-2fixed
Debianphp-nesbot-carbonbookworm2.65.0-1+deb12u1fixed
Ubuntuphp-nesbot-carbon20.041.27.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-nesbot-carbonsourcesid2.72.6-1not yet assignedNot reported[1092680]
Debianphp-nesbot-carbonsourceforky2.72.6-1not yet assignedNot reported[1092680]
Debianphp-nesbot-carbonsourcetrixie2.72.6-1not yet assignedNot reported[1092680]
Debianphp-nesbot-carbonsourcebookworm2.65.0-1+deb12u1not yet assignedNot reported[1092680]

[Debian bug #1092680]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 2.65.0-1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.65.0-1+deb12u1

      dsa · php-nesbot-carbon · debian · bookworm; dsa · php-nesbot-carbon · debian · 12

    • 2.65.0-1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.65.0-1+deb12u1

      dsa · php-nesbot-carbon · debian · bookworm; dsa · php-nesbot-carbon · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 2.73.0-2 · all · trixie

      Fixed · Fixed: 2.72.6-1

      dsa · php-nesbot-carbon · debian · 13

    • 2.73.0-2 · all · trixie

      Fixed · Fixed: 2.72.6-1

      dsa · php-nesbot-carbon · debian · 13

Observed:

References