Deserialization of Untrusted Data in PHPUnit - CVE-2026-24765
Published: April 17, 2026
PHPUnit
Detailed vulnerability description
The vulnerability allows a local user to execute arbitrary code.
The vulnerability exists due to deserialization of untrusted data in the cleanupForCoverage() method of the PHPT test runner when processing a pre-existing .coverage file during PHPT test execution with code coverage instrumentation enabled. A local user can place a malicious serialized object in a .coverage file to execute arbitrary code.
The issue is triggered only if a .coverage file is present before test execution.