Skip to content

CVE-2026-24765 PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling

HighCVSS 7.8 EPSS 0.38% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
PHPUbuntuDebian

Description

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.

Upgrade path

11 packages: 5 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/phpunit(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/phpunit(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/phpunit(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/phpunit(Ubuntu 26.10) All versions No fix listed No fix yet
debian/phpunit(Debian 12) < 9.6.7-1+deb12u1; = 9.6.7-1 9.6.7-1+deb12u1 Fixed
debian/phpunit(Debian 13) < 11.5.19-1+deb13u1; = 11.5.19-1 11.5.19-1+deb13u1 Fixed
debian/phpunit(Debian 14) < 12.5.8-1; = 11.5.19-1; = 12.0.2-1; = 12.0.3-1 +44 more 12.5.8-1 Fixed
phpunit project phpunit < 8.5.52; >= 9.0.0, < 9.6.33; >= 10.0.0, < 10.5.62; >= 11.0.0, < 11.5.50 +1 more 8.5.52, 9.6.33, 10.5.62, 11.5.50, 12.5.8 Fixed
phpunit/phpunit(Packagist) < 8.5.52; = 3.7.0; = 3.7.1; = 3.7.2 +758 more 8.5.52, 9.6.33, 10.5.62, 11.5.50, 12.5.8 Fixed
debian linux = 11.0 No fix listed Versions listed
sebastianbergmann phpunit = < 8.5.52; = >= 9.0.0, < 9.6.33; = >= 10.0.0, < 10.5.62; = >= 11.0.0, < 11.5.50 +1 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
phpunit/phpunit(Packagist) < 8.5.52 8.5.52
phpunit/phpunit(Packagist) = 3.7.0 No fix listed
phpunit/phpunit(Packagist) = 3.7.1 No fix listed
phpunit/phpunit(Packagist) = 3.7.10 No fix listed
phpunit/phpunit(Packagist) = 3.7.11 No fix listed
phpunit/phpunit(Packagist) = 3.7.12 No fix listed
phpunit/phpunit(Packagist) = 3.7.13 No fix listed
phpunit/phpunit(Packagist) = 3.7.14 No fix listed
phpunit/phpunit(Packagist) = 3.7.15 No fix listed
phpunit/phpunit(Packagist) = 3.7.16 No fix listed
phpunit/phpunit(Packagist) = 3.7.17 No fix listed
phpunit/phpunit(Packagist) = 3.7.18 No fix listed
phpunit/phpunit(Packagist) = 3.7.19 No fix listed
phpunit/phpunit(Packagist) = 3.7.2 No fix listed
phpunit/phpunit(Packagist) = 3.7.20 No fix listed
phpunit/phpunit(Packagist) = 3.7.21 No fix listed
phpunit/phpunit(Packagist) = 3.7.22 No fix listed
phpunit/phpunit(Packagist) = 3.7.23 No fix listed
phpunit/phpunit(Packagist) = 3.7.24 No fix listed
phpunit/phpunit(Packagist) = 3.7.25 No fix listed
phpunit/phpunit(Packagist) = 3.7.26 No fix listed
phpunit/phpunit(Packagist) = 3.7.27 No fix listed
phpunit/phpunit(Packagist) = 3.7.28 No fix listed
phpunit/phpunit(Packagist) = 3.7.29 No fix listed
phpunit/phpunit(Packagist) = 3.7.3 No fix listed
Show 175 more
ProductAffected versionsFixed in
phpunit/phpunit(Packagist) = 3.7.30 No fix listed
phpunit/phpunit(Packagist) = 3.7.31 No fix listed
phpunit/phpunit(Packagist) = 3.7.32 No fix listed
phpunit/phpunit(Packagist) = 3.7.33 No fix listed
phpunit/phpunit(Packagist) = 3.7.34 No fix listed
phpunit/phpunit(Packagist) = 3.7.35 No fix listed
phpunit/phpunit(Packagist) = 3.7.36 No fix listed
phpunit/phpunit(Packagist) = 3.7.37 No fix listed
phpunit/phpunit(Packagist) = 3.7.38 No fix listed
phpunit/phpunit(Packagist) = 3.7.4 No fix listed
phpunit/phpunit(Packagist) = 3.7.5 No fix listed
phpunit/phpunit(Packagist) = 3.7.6 No fix listed
phpunit/phpunit(Packagist) = 3.7.7 No fix listed
phpunit/phpunit(Packagist) = 3.7.8 No fix listed
phpunit/phpunit(Packagist) = 3.7.9 No fix listed
phpunit/phpunit(Packagist) = 4.0.0 No fix listed
phpunit/phpunit(Packagist) = 4.0.1 No fix listed
phpunit/phpunit(Packagist) = 4.0.10 No fix listed
phpunit/phpunit(Packagist) = 4.0.11 No fix listed
phpunit/phpunit(Packagist) = 4.0.12 No fix listed
phpunit/phpunit(Packagist) = 4.0.13 No fix listed
phpunit/phpunit(Packagist) = 4.0.14 No fix listed
phpunit/phpunit(Packagist) = 4.0.15 No fix listed
phpunit/phpunit(Packagist) = 4.0.16 No fix listed
phpunit/phpunit(Packagist) = 4.0.17 No fix listed
phpunit/phpunit(Packagist) = 4.0.18 No fix listed
phpunit/phpunit(Packagist) = 4.0.19 No fix listed
phpunit/phpunit(Packagist) = 4.0.2 No fix listed
phpunit/phpunit(Packagist) = 4.0.20 No fix listed
phpunit/phpunit(Packagist) = 4.0.3 No fix listed
phpunit/phpunit(Packagist) = 4.0.4 No fix listed
phpunit/phpunit(Packagist) = 4.0.5 No fix listed
phpunit/phpunit(Packagist) = 4.0.6 No fix listed
phpunit/phpunit(Packagist) = 4.0.7 No fix listed
phpunit/phpunit(Packagist) = 4.0.8 No fix listed
phpunit/phpunit(Packagist) = 4.0.9 No fix listed
phpunit/phpunit(Packagist) = 4.1.0 No fix listed
phpunit/phpunit(Packagist) = 4.1.1 No fix listed
phpunit/phpunit(Packagist) = 4.1.2 No fix listed
phpunit/phpunit(Packagist) = 4.1.3 No fix listed
phpunit/phpunit(Packagist) = 4.1.4 No fix listed
phpunit/phpunit(Packagist) = 4.1.5 No fix listed
phpunit/phpunit(Packagist) = 4.1.6 No fix listed
phpunit/phpunit(Packagist) = 4.2.0 No fix listed
phpunit/phpunit(Packagist) = 4.2.1 No fix listed
phpunit/phpunit(Packagist) = 4.2.2 No fix listed
phpunit/phpunit(Packagist) = 4.2.3 No fix listed
phpunit/phpunit(Packagist) = 4.2.4 No fix listed
phpunit/phpunit(Packagist) = 4.2.5 No fix listed
phpunit/phpunit(Packagist) = 4.2.6 No fix listed
phpunit/phpunit(Packagist) = 4.3.0 No fix listed
phpunit/phpunit(Packagist) = 4.3.1 No fix listed
phpunit/phpunit(Packagist) = 4.3.2 No fix listed
phpunit/phpunit(Packagist) = 4.3.3 No fix listed
phpunit/phpunit(Packagist) = 4.3.4 No fix listed
phpunit/phpunit(Packagist) = 4.3.5 No fix listed
phpunit/phpunit(Packagist) = 4.4.0 No fix listed
phpunit/phpunit(Packagist) = 4.4.1 No fix listed
phpunit/phpunit(Packagist) = 4.4.2 No fix listed
phpunit/phpunit(Packagist) = 4.4.3 No fix listed
phpunit/phpunit(Packagist) = 4.4.4 No fix listed
phpunit/phpunit(Packagist) = 4.4.5 No fix listed
phpunit/phpunit(Packagist) = 4.5.0 No fix listed
phpunit/phpunit(Packagist) = 4.5.1 No fix listed
phpunit/phpunit(Packagist) = 4.6.0 No fix listed
phpunit/phpunit(Packagist) = 4.6.1 No fix listed
phpunit/phpunit(Packagist) = 4.6.10 No fix listed
phpunit/phpunit(Packagist) = 4.6.2 No fix listed
phpunit/phpunit(Packagist) = 4.6.3 No fix listed
phpunit/phpunit(Packagist) = 4.6.4 No fix listed
phpunit/phpunit(Packagist) = 4.6.5 No fix listed
phpunit/phpunit(Packagist) = 4.6.6 No fix listed
phpunit/phpunit(Packagist) = 4.6.7 No fix listed
phpunit/phpunit(Packagist) = 4.6.8 No fix listed
phpunit/phpunit(Packagist) = 4.6.9 No fix listed
phpunit/phpunit(Packagist) = 4.7.0 No fix listed
phpunit/phpunit(Packagist) = 4.7.1 No fix listed
phpunit/phpunit(Packagist) = 4.7.2 No fix listed
phpunit/phpunit(Packagist) = 4.7.3 No fix listed
phpunit/phpunit(Packagist) = 4.7.4 No fix listed
phpunit/phpunit(Packagist) = 4.7.5 No fix listed
phpunit/phpunit(Packagist) = 4.7.6 No fix listed
phpunit/phpunit(Packagist) = 4.7.7 No fix listed
phpunit/phpunit(Packagist) = 4.8.0 No fix listed
phpunit/phpunit(Packagist) = 4.8.1 No fix listed
phpunit/phpunit(Packagist) = 4.8.10 No fix listed
phpunit/phpunit(Packagist) = 4.8.11 No fix listed
phpunit/phpunit(Packagist) = 4.8.12 No fix listed
phpunit/phpunit(Packagist) = 4.8.13 No fix listed
phpunit/phpunit(Packagist) = 4.8.14 No fix listed
phpunit/phpunit(Packagist) = 4.8.15 No fix listed
phpunit/phpunit(Packagist) = 4.8.16 No fix listed
phpunit/phpunit(Packagist) = 4.8.17 No fix listed
phpunit/phpunit(Packagist) = 4.8.18 No fix listed
phpunit/phpunit(Packagist) = 4.8.19 No fix listed
phpunit/phpunit(Packagist) = 4.8.2 No fix listed
phpunit/phpunit(Packagist) = 4.8.20 No fix listed
phpunit/phpunit(Packagist) = 4.8.21 No fix listed
phpunit/phpunit(Packagist) = 4.8.22 No fix listed
phpunit/phpunit(Packagist) = 4.8.23 No fix listed
phpunit/phpunit(Packagist) = 4.8.24 No fix listed
phpunit/phpunit(Packagist) = 4.8.25 No fix listed
phpunit/phpunit(Packagist) = 4.8.26 No fix listed
phpunit/phpunit(Packagist) = 4.8.27 No fix listed
phpunit/phpunit(Packagist) = 4.8.28 No fix listed
phpunit/phpunit(Packagist) = 4.8.29 No fix listed
phpunit/phpunit(Packagist) = 4.8.3 No fix listed
phpunit/phpunit(Packagist) = 4.8.30 No fix listed
phpunit/phpunit(Packagist) = 4.8.31 No fix listed
phpunit/phpunit(Packagist) = 4.8.32 No fix listed
phpunit/phpunit(Packagist) = 4.8.33 No fix listed
phpunit/phpunit(Packagist) = 4.8.34 No fix listed
phpunit/phpunit(Packagist) = 4.8.35 No fix listed
phpunit/phpunit(Packagist) = 4.8.36 No fix listed
phpunit/phpunit(Packagist) = 4.8.4 No fix listed
phpunit/phpunit(Packagist) = 4.8.5 No fix listed
phpunit/phpunit(Packagist) = 4.8.6 No fix listed
phpunit/phpunit(Packagist) = 4.8.7 No fix listed
phpunit/phpunit(Packagist) = 4.8.8 No fix listed
phpunit/phpunit(Packagist) = 4.8.9 No fix listed
phpunit/phpunit(Packagist) = 5.0.0 No fix listed
phpunit/phpunit(Packagist) = 5.0.1 No fix listed
phpunit/phpunit(Packagist) = 5.0.10 No fix listed
phpunit/phpunit(Packagist) = 5.0.2 No fix listed
phpunit/phpunit(Packagist) = 5.0.3 No fix listed
phpunit/phpunit(Packagist) = 5.0.4 No fix listed
phpunit/phpunit(Packagist) = 5.0.5 No fix listed
phpunit/phpunit(Packagist) = 5.0.6 No fix listed
phpunit/phpunit(Packagist) = 5.0.7 No fix listed
phpunit/phpunit(Packagist) = 5.0.8 No fix listed
phpunit/phpunit(Packagist) = 5.0.9 No fix listed
phpunit/phpunit(Packagist) = 5.1.0 No fix listed
phpunit/phpunit(Packagist) = 5.1.1 No fix listed
phpunit/phpunit(Packagist) = 5.1.2 No fix listed
phpunit/phpunit(Packagist) = 5.1.3 No fix listed
phpunit/phpunit(Packagist) = 5.1.4 No fix listed
phpunit/phpunit(Packagist) = 5.1.5 No fix listed
phpunit/phpunit(Packagist) = 5.1.6 No fix listed
phpunit/phpunit(Packagist) = 5.1.7 No fix listed
phpunit/phpunit(Packagist) = 5.2.0 No fix listed
phpunit/phpunit(Packagist) = 5.2.1 No fix listed
phpunit/phpunit(Packagist) = 5.2.10 No fix listed
phpunit/phpunit(Packagist) = 5.2.11 No fix listed
phpunit/phpunit(Packagist) = 5.2.12 No fix listed
phpunit/phpunit(Packagist) = 5.2.2 No fix listed
phpunit/phpunit(Packagist) = 5.2.3 No fix listed
phpunit/phpunit(Packagist) = 5.2.4 No fix listed
phpunit/phpunit(Packagist) = 5.2.5 No fix listed
phpunit/phpunit(Packagist) = 5.2.6 No fix listed
phpunit/phpunit(Packagist) = 5.2.7 No fix listed
phpunit/phpunit(Packagist) = 5.2.8 No fix listed
phpunit/phpunit(Packagist) = 5.2.9 No fix listed
phpunit/phpunit(Packagist) = 5.3.0 No fix listed
phpunit/phpunit(Packagist) = 5.3.1 No fix listed
phpunit/phpunit(Packagist) = 5.3.2 No fix listed
phpunit/phpunit(Packagist) = 5.3.3 No fix listed
phpunit/phpunit(Packagist) = 5.3.4 No fix listed
phpunit/phpunit(Packagist) = 5.3.5 No fix listed
phpunit/phpunit(Packagist) = 5.4.0 No fix listed
phpunit/phpunit(Packagist) = 5.4.1 No fix listed
phpunit/phpunit(Packagist) = 5.4.2 No fix listed
phpunit/phpunit(Packagist) = 5.4.3 No fix listed
phpunit/phpunit(Packagist) = 5.4.4 No fix listed
phpunit/phpunit(Packagist) = 5.4.5 No fix listed
phpunit/phpunit(Packagist) = 5.4.6 No fix listed
phpunit/phpunit(Packagist) = 5.4.7 No fix listed
phpunit/phpunit(Packagist) = 5.4.8 No fix listed
phpunit/phpunit(Packagist) = 5.5.0 No fix listed
phpunit/phpunit(Packagist) = 5.5.1 No fix listed
phpunit/phpunit(Packagist) = 5.5.2 No fix listed
phpunit/phpunit(Packagist) = 5.5.3 No fix listed
phpunit/phpunit(Packagist) = 5.5.4 No fix listed
phpunit/phpunit(Packagist) = 5.5.5 No fix listed
phpunit/phpunit(Packagist) = 5.5.6 No fix listed
phpunit/phpunit(Packagist) = 5.5.7 No fix listed

References