GHSA-vvj3-c3rp-c85p · 深刻度: high · エコシステム: composer — 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.
総合評価: CVE-2026-24765 は中リスク(40.4/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 0.34%、26 パーセンタイル) 推奨対応: 影響資産を整理し、修補計画に組み込んでください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.16% | 0.34% | +0.18% |
| 2 | 2026-05-13 | 0.05% | 0.16% | +0.11% |
| 3 | 2026-02-28 | — | 0.05% | — |
EPSS の全履歴 (全 5 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 7.8 | 3.1 | HIGH |
|
1.8 | 5.9 | [email protected] |
GHSA-vvj3-c3rp-c85p · 深刻度: high · エコシステム: composer — PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2026-24765: 1 source package rows (phpunit); 3 state rows across 2 repos (3.23-community, edge-community); fixed 0, open 3. | https://security.alpinelinux.org/vuln/CVE-2026-24765 |
debian
|
not yet assigned | CVE-2026-24765 not yet assigned priority: Debian including 1 source packages (phpunit), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2026-24765 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2026-24765 |
ubuntu
|
medium | CVE-2026-24765 medium priority: Ubuntu including 1 source packages (phpunit), 7 status rows across 7 suites (bionic, focal, jammy, noble, questing, upstream, xenial): needs-triage 7. | https://ubuntu.com/security/CVE-2026-24765 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| phpunit_project | phpunit | < 8.5.52 | cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:* |
| phpunit_project | phpunit | >= 9.0.0, < 9.6.33 | cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:* |
| phpunit_project | phpunit | >= 10.0.0, < 10.5.62 | cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:* |
| phpunit_project | phpunit | >= 11.0.0, < 11.5.50 | cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:* |
| phpunit_project | phpunit | >= 12.0.0, < 12.5.8 | cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:-:*:* |
| debian | debian_linux | 11.0 | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
| URL | タグ |
|---|---|
| https://github.com/sebastianbergmann/phpunit/commit/3141742e00620e2968d3d2e732d320de76685fda | Patch |
| https://github.com/sebastianbergmann/phpunit/releases/tag/10.5.63 | Release Notes |
| https://github.com/sebastianbergmann/phpunit/releases/tag/11.5.50 | Release Notes |
| https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.8 | Release Notes |
| https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.52 | Release Notes |
| https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.33 | Release Notes |
| https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85p | Mitigation Vendor Advisory |
| https://lists.debian.org/debian-lts-announce/2026/02/msg00009.html | Mailing List Third Party Advisory |