UBUNTU-CVE-2026-24765

Source
https://ubuntu.com/security/CVE-2026-24765
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-24765
Upstream
Published
2026-01-27T22:15:00Z
Modified
2026-01-30T20:45:14.170295Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

PHPUnit is a testing framework for PHP. A vulnerability has been discovered in versions prior to 12.5.8, 11.5.50, 10.5.62, 9.6.33, and 8.5.52 involving unsafe deserialization of code coverage data in PHPT test execution. The vulnerability exists in the cleanupForCoverage() method, which deserializes code coverage files without validation, potentially allowing remote code execution if malicious .coverage files are present prior to the execution of the PHPT test. The vulnerability occurs when a .coverage file, which should not exist before test execution, is deserialized without the allowed_classes parameter restriction. An attacker with local file write access can place a malicious serialized object with a __wakeup() method into the file system, leading to arbitrary code execution during test runs with code coverage instrumentation enabled. This vulnerability requires local file write access to the location where PHPUnit stores or expects code coverage files for PHPT tests. This can occur through CI/CD pipeline attacks, the local development environment, and/or compromised dependencies. Rather than just silently sanitizing the input via ['allowed_classes' => false], the maintainer has chosen to make the anomalous state explicit by treating pre-existing .coverage files for PHPT tests as an error condition. Starting in versions in versions 12.5.8, 11.5.50, 10.5.62, 9.6.33, when a .coverage file is detected for a PHPT test prior to execution, PHPUnit will emit a clear error message identifying the anomalous state. Organizations can reduce the effective risk of this vulnerability through proper CI/CD configuration, including ephemeral runners, code review enforcement, branch protection, artifact isolation, and access control.

References

Affected packages

Ubuntu:18.04:LTS

phpunit

Package

Name
phpunit
Purl
pkg:deb/ubuntu/phpunit@6.5.5-1ubuntu2?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

5.*

5.4.6-2
5.4.6-3

6.*

6.5.5-1ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "phpunit",
            "binary_version": "6.5.5-1ubuntu2"
        }
    ]
}

Database specific

source

"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json"

Ubuntu:20.04:LTS

phpunit

Package

Name
phpunit
Purl
pkg:deb/ubuntu/phpunit@8.5.2-1ubuntu1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

7.*

7.5.6-1

8.*

8.5.2-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "phpunit",
            "binary_version": "8.5.2-1ubuntu1"
        }
    ]
}

Database specific

source

"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json"

Ubuntu:22.04:LTS

phpunit

Package

Name
phpunit
Purl
pkg:deb/ubuntu/phpunit@9.5.10-1ubuntu2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

9.*

9.5.4-1
9.5.10-1ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "phpunit",
            "binary_version": "9.5.10-1ubuntu2"
        }
    ]
}

Database specific

source

"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json"

Ubuntu:24.04:LTS

phpunit

Package

Name
phpunit
Purl
pkg:deb/ubuntu/phpunit@9.6.17-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

9.*

9.6.10-1
9.6.13-1
9.6.15-1
9.6.16-1
9.6.17-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "phpunit",
            "binary_version": "9.6.17-1"
        }
    ]
}

Database specific

source

"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json"

Ubuntu:25.10

phpunit

Package

Name
phpunit
Purl
pkg:deb/ubuntu/phpunit@11.5.19-1build4?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

11.*

11.5.3-1ubuntu4
11.5.19-1build4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "phpunit",
            "binary_version": "11.5.19-1build4"
        }
    ]
}

Database specific

source

"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json"

Ubuntu:Pro:16.04:LTS

phpunit

Package

Name
phpunit
Purl
pkg:deb/ubuntu/phpunit@5.1.3-1+ubuntu3+esm1?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.7.6-1
4.8.16-1

5.*

5.1.3-1ubuntu1
5.1.3-1+build1
5.1.3-1+ubuntu1
5.1.3-1+ubuntu3
5.1.3-1+ubuntu3+esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "phpunit",
            "binary_version": "5.1.3-1+ubuntu3+esm1"
        }
    ]
}

Database specific

source

"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-24765.json"