Local code execution via PHPT coverage deserialization
Published Jan 27, 2026 · Updated Jan 27, 2026
Unsafe deserialization in affected PHPUnit releases allows local users to execute code through prepared PHPT coverage data. The PHPT runner's cleanupForCoverage() method passes a pre-existing .coverage file to PHP unserialize() without restricting allowed classes, invoking attacker-controlled object hooks. Exploitation requires write access to the expected coverage-file path and a PHPT test run with code coverage instrumentation enabled.
Summary
What happened
Unsafe deserialization in affected PHPUnit releases allows local users to execute code through prepared PHPT coverage data. The PHPT runner's cleanupForCoverage() method passes a pre-existing .coverage file to PHP unserialize() without restricting allowed classes, invoking attacker-controlled object hooks. Exploitation requires write access to the expected coverage-file path and a PHPT test run with code coverage instrumentation enabled.
The record
- CVE
- CVE-2026-24765
- Published
- Jan 27, 2026
- Updated
- Jan 27, 2026
- Vendor
- Sebastian Bergmann
- Product
- PHPUnit
- Classifications
- CWE-502, CAPEC-586, T1059
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 27, 2026CVE publishedPublication date reported by the CVE source.
- Jan 27, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 10.0.0, < 10.5.62
- Affected versionversion=>= 11.0.0, < 11.5.50
- Affected versionversion=>= 12.0.0, < 12.5.8
- Affected versionversion=< 8.5.52
- Affected versionversion=>= 9.0.0, < 9.6.33
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo