Summary
It was discovered that PHPUnit deserialized code coverage files without
validation when running PHPT tests with code coverage enabled. A local
attacker able to write files where PHPUnit stores code coverage data could
possibly use this issue to execute arbitrary code.
Fixed packages 4
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | phpunit | 6.5.5-1ubuntu2+esm1 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | phpunit | 8.5.2-1ubuntu1+esm1 |
| Ubuntu · Pro 22.04 LTS Pro:22.04:LTS | phpunit | 9.5.10-1ubuntu2+esm1 |
| Ubuntu · Pro 24.04 LTS Pro:24.04:LTS | phpunit | 9.6.17-1ubuntu0.1~esm1 |
Vulnerabilities 1
-
High 7.8
PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
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 `clean…
References
-
report
https://ubuntu.com/security/CVE-2026-24765