


Perceptive Security
SOC/SIEM Consultancy

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 d…
Published:
26 januari 2026 om 23:00:00
Alert date:
27 januari 2026 om 23:04:33
Source:
nvd.nist.gov
Web Technologies, Supply Chain & Dependencies
PHPUnit testing framework for PHP contains a vulnerability 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. The vulnerability exists in the cleanupForCoverage() method which deserializes code coverage files without validation. An attacker with local file write access can place malicious serialized objects with __wakeup() methods to achieve arbitrary code execution during test runs with code coverage enabled. The vulnerability can be exploited through CI/CD pipeline attacks, compromised local environments, or malicious dependencies. Fixed versions now emit error messages when pre-existing .coverage files are detected before PHPT test execution.
Technical details
Mitigation steps:
Affected products:
PHPUnit
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-24765
https://github.com/sebastianbergmann/phpunit/commit/3141742e00620e2968d3d2e732d320de76685fda
https://github.com/sebastianbergmann/phpunit/releases/tag/10.5.63
https://github.com/sebastianbergmann/phpunit/releases/tag/11.5.50
https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.8
https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.52
https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.33
https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85p
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
