CVE-2026-24765
No exploitation reported by the sources we read.
- Published2026-01-27
- Fixed in12.5.8 · 11.5.50 · 10.5.62 · 9.6.33 · 8.5.52
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2026-01-2722:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2026-24765?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2026-24765?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 12.x | ≥ 12.0.0, < 12.5.8 | 12.5.8 | NVD · OSV |
| 11.x | ≥ 11.0.0, < 11.5.50 | 11.5.50 | NVD · OSV |
| 10.x | ≥ 10.0.0, < 10.5.62 | 10.5.62 | NVD · OSV |
| 9.x | ≥ 9.0.0, < 9.6.33 | 9.6.33 | NVD · OSV |
| 8.5 | < 8.5.52 | 8.5.52 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 11.0 | = 11.0 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Vendor advisories
- CVE-2026-24765 Red Hat Product Security
phpunit: PHPUnit: Arbitrary code execution via unsafe deserialization of code coverage files
Fix
- Update Phpunit project phpunit to 12.5.8 · 11.5.50 · 10.5.62 · 9.6.33 · 8.5.52
Advisories and patches
- github.comPatch
- github.comRelease Notes
- github.comRelease Notes
- github.comRelease Notes
- github.comRelease Notes
- github.comRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
Sources
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2026-01-27
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
Frequently asked questions
What is CVE-2026-24765?
Is CVE-2026-24765 actively exploited?
What is the CVSS score for CVE-2026-24765?
Running phpunit/phpunit? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2017-9841KEVsame product
- CVE-2026-41570same product
- CVE-2026-1281KEVsame week
- CVE-2026-1340KEVsame weekUnauthenticated Remote Code Execution via Code Injection in Ivanti Endpoint Manager Mobile
- CVE-2026-24858KEVsame week
- CVE-2025-40551KEVsame weekSolarWinds Web Help Desk Deserialization of Untrusted Data Remote Code Execution Vulnerability
- CVE-2025-40536KEVsame weekSolarWinds Web Help Desk Security Control Bypass Vulnerability
- CVE-2026-21509KEVsame week