UBUNTU-CVE-2025-22145

Source
https://ubuntu.com/security/CVE-2025-22145
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22145.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-22145
Upstream
Downstream
Related
Published
2025-01-08T21:15:00Z
Modified
2026-12-02T02:19:56Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 (Source: CNA) CVSS Calculator
  • Ubuntu - medium (Source: SELF)
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / php-nesbot-carbon

Package

Name
php-nesbot-carbon
Purl
pkg:deb/ubuntu/php-nesbot-carbon?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.27.0-2ubuntu0.1~esm1

Affected versions

1.*
1.27.0-2

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "php-nesbot-carbon",
            "binary_version":  "1.27.0-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-22145.json"