Skip to main content
CVE-2026-24765VulnerabilityPublished Updated

Phpunit: A vulnerability has been discovered

Affects phpunitSource GCVE Database

0
Compare
Authoritative record:CVE-2026-24765· High 7.8

Not known to be exploited · CVSS 7.8 High.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10phpunitpkg:deb/ubuntu/phpunit?arch=source&distro=stonkingOther threatsAffected
  • =13.0.0-2ubuntu6
  • =13.2.6+ds-1
Fixed in–
Ubuntu 26.04 LTSphpunitpkg:deb/ubuntu/phpunit?arch=source&distro=resoluteOther threatsAffected
  • =11.5.19-1build4
  • =13.0.0-2ubuntu6
Fixed in–
Ubuntu 25.10phpunitpkg:deb/ubuntu/phpunit?arch=source&distro=questingOther threatsAffected
  • =11.5.3-1ubuntu4
  • =11.5.19-1build4
Fixed in–
Ubuntu 24.04 LTSphpunitpkg:deb/ubuntu/phpunit?arch=source&distro=nobleOther threatsAffected
  • 9.6.10-1 – 9.6.17-1
5 affected builds
Fixed in–
Ubuntu 22.04 LTSphpunitpkg:deb/ubuntu/phpunit?arch=source&distro=jammyOther threatsAffected
  • =9.5.4-1
  • =9.5.10-1ubuntu2
Fixed in–
Ubuntu 20.04 LTSphpunitpkg:deb/ubuntu/phpunit?arch=source&distro=focalOther threatsAffected
  • =7.5.6-1
  • =8.5.2-1ubuntu1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…