CVE-2026-24765

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.

CVSS severity7.8
High
EPSS probability0.36%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

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

  1. Jan 27, 2026CVE publishedPublication date reported by the CVE source.
  2. 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.

  1. Affected versionversion=>= 10.0.0, < 10.5.62
  2. Affected versionversion=>= 11.0.0, < 11.5.50
  3. Affected versionversion=>= 12.0.0, < 12.5.8
  4. Affected versionversion=< 8.5.52
  5. Affected versionversion=>= 9.0.0, < 9.6.33

What conditions does exploitation require?

Attack vectorlocal
Required privilegesauthenticated

What is affected?

Sebastian Bergmann · PHPUnitversion=>= 10.0.0, < 10.5.62; version=>= 11.0.0, < 11.5.50; version=>= 12.0.0, < 12.5.8; version=< 8.5.52; version=>= 9.0.0, < 9.6.33

Published CVSS scores

7.8GitHub, Inc.CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-502Deserialization of Untrusted Data
CAPEC-586Object Injection
T1059Command and Scripting Interpreter

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