Home / sebastianbergmann / phpunit / CVE-2026-24765
CVE-2026-24765: is it exploited, and which versions of sebastianbergmann phpunit are affected and fixed?
CVE-2026-24765 is a deserialization of untrusted data vulnerability in sebastianbergmann phpunit. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: phpunit/phpunit before 8.5.52, phpunit/phpunit from 9.0.0 before 9.6.33, phpunit/phpunit from 10.0.0 before 10.5.62 and 2 more (GitHub advisory GHSA-vvj3-c3rp-c85p). Fixed in 8.5.52, 9.6.33, 10.5.62, 11.5.50 and 1 more (GitHub advisory GHSA-vvj3-c3rp-c85p). Severity: High (7.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:14 UTC.
What is CVE-2026-24765?
PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
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.
From the CVE record by GitHub_M, last updated February 6, 2026, 12:09 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| sebastianbergmann | phpunit | < 8.5.52 >= 9.0.0, < 9.6.33 >= 10.0.0, < 10.5.62 >= 11.0.0, < 11.5.50 >= 12.0.0, < 12.5.8 |
As the CVE record by GitHub_M states it, last updated February 6, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | phpunit/phpunit | < 8.5.52 | 8.5.52 | GHSA-vvj3-c3rp-c85p |
| Packagist | phpunit/phpunit | >= 9.0.0, < 9.6.33 | 9.6.33 | GHSA-vvj3-c3rp-c85p |
| Packagist | phpunit/phpunit | >= 10.0.0, < 10.5.62 | 10.5.62 | GHSA-vvj3-c3rp-c85p |
| Packagist | phpunit/phpunit | >= 11.0.0, < 11.5.50 | 11.5.50 | GHSA-vvj3-c3rp-c85p |
| Packagist | phpunit/phpunit | >= 12.0.0, < 12.5.8 | 12.5.8 | GHSA-vvj3-c3rp-c85p |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 27, 2026. Summary: PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| phpunit project | phpunit | before 8.5.52 | application |
| phpunit project | phpunit | from 9.0.0 before 9.6.33 | application |
| phpunit project | phpunit | from 10.0.0 before 10.5.62 | application |
| phpunit project | phpunit | from 11.0.0 before 11.5.50 | application |
| phpunit project | phpunit | from 12.0.0 before 12.5.8 | application |
| debian | debian linux | 11.0 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:23 UTC.
How severe is CVE-2026-24765?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-24765 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, January 28, 2026)
- EPSS
- 0.38% probability of exploitation activity in the next 30 days, percentile 34.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-502 Deserialization of Untrusted Data
Where are the vendor advisories and references?
- https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85p x_refsource_CONFIRM
- https://github.com/sebastianbergmann/phpunit/commit/3141742e00620e2968d3d2e732d320de76685fda x_refsource_MISC
- https://github.com/sebastianbergmann/phpunit/releases/tag/10.5.63 x_refsource_MISC
- https://github.com/sebastianbergmann/phpunit/releases/tag/11.5.50 x_refsource_MISC
- https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.8 x_refsource_MISC
- https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.52 x_refsource_MISC
- https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.33 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2026/02/msg00009.html
When was it published, and where is the official record?
- Reserved
- January 26, 2026
- Published
- January 27, 2026, 21:35 UTC
- CVE record updated
- February 6, 2026, 12:09 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 10:23 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect phpunit?
- Oct 29, 2026CVE-2026-119193 sebastianbergmann phpunit: creation of Temporary File in Directory with Insecure Permissions
- May 8, 2026CVE-2026-41570 sebastianbergmann phpunit: improper Neutralization of CRLF Sequences
Questions about CVE-2026-24765
Is CVE-2026-24765 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.38% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of sebastianbergmann phpunit are affected by CVE-2026-24765?
phpunit/phpunit before 8.5.52, phpunit/phpunit from 9.0.0 before 9.6.33, phpunit/phpunit from 10.0.0 before 10.5.62, phpunit/phpunit from 11.0.0 before 11.5.50 and phpunit/phpunit from 12.0.0 before 12.5.8, per the GitHub advisory GHSA-vvj3-c3rp-c85p. The tables above give every range the sources list.
Which version fixes CVE-2026-24765?
8.5.52, 9.6.33, 10.5.62, 11.5.50 and 12.5.8, per the GitHub advisory GHSA-vvj3-c3rp-c85p. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-24765?
High (7.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-24765?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.