CVE-2026-24765
Last modified
CVE-2026-24765 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.34% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Phpunit Project | Phpunit | < 8.5.52 |
| Phpunit Project | Phpunit | >= 9.0.0, < 9.6.33 |
| Phpunit Project | Phpunit | >= 10.0.0, < 10.5.62 |
| Phpunit Project | Phpunit | >= 11.0.0, < 11.5.50 |
| Phpunit Project | Phpunit | >= 12.0.0, < 12.5.8 |
| Debian | Debian Linux | 11.0 |
References
- https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85pMitigation, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2026/02/msg00009.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-24765?
How severe is CVE-2026-24765?
How do I fix CVE-2026-24765?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-24756Kiteworks is a private data network (PDN). Prior to version …4.3
- CVE-2026-2476Mattermost Plugins versions <=2.0.3.0 fail to properly mask …4.3
- CVE-2026-24761Kiteworks is a private data network (PDN). Prior to version …4.3
- CVE-2026-24762RustFS is a distributed object storage system built in Rust.…7.5
- CVE-2026-24763OpenClaw (formerly Clawdbot) is a personal AI assistant you…8.8
- CVE-2026-24764OpenClaw (formerly Clawdbot) is a personal AI assistant user…3.7
- CVE-2026-24766NocoDB is software for building databases as spreadsheets. P…4.9
- CVE-2026-24767NocoDB is software for building databases as spreadsheets. P…6.4
- CVE-2026-24768NocoDB is software for building databases as spreadsheets. P…6.1
- CVE-2026-24769NocoDB is software for building databases as spreadsheets. P…9
- CVE-2026-24770RAGFlow is an open-source RAG (Retrieval-Augmented Generatio…9.8
- CVE-2026-24771Hono is a Web application framework that provides support fo…4.7
Are you affected by CVE-2026-24765?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
