CVE-2026-24765
CVE-2026-24765 · PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
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.
CVSS 7.8 · Alta · EPSS 0,4% · Corrección disponible
- Publicación
- Actualización
Pila tecnológica: system · php
Productos y versiones afectados
phpunit
- Versiones
- < 8.5.52: Afectada
- >= 9.0.0, < 9.6.33: Afectada
- >= 10.0.0, < 10.5.62: Afectada
- >= 11.0.0, < 11.5.50: Afectada
- >= 12.0.0, < 12.5.8: Afectada
Sin corrección publicada
phpunit Debian:12
- Versiones
- 9.6.7-1
- Intervalos de versiones afectados
- ECOSYSTEM: < 9.6.7-1+deb12u1
Actualiza a 9.6.7-1+deb12u1
phpunit Debian:13
- Versiones
- 11.5.19-1
- Intervalos de versiones afectados
- ECOSYSTEM: < 11.5.19-1+deb13u1
Actualiza a 11.5.19-1+deb13u1
phpunit Debian:14
- Versiones
- 11.5.19-1
- 12.0.10-1
- 12.0.2-1
- 12.0.3-1
- 12.0.4-1
- 12.0.5-1
- 12.0.7-1
- 12.0.7-2
- 12.0.8-1
- 12.0.9-1
- 12.1.0-1
- 12.1.2-1
- 12.1.3-1
- 12.1.4-1
- 12.1.5-1
- 12.1.6-1
- 12.2.1-1
- 12.2.2-1
- 12.2.3-1
- 12.2.5-1
- 12.2.6-1
- 12.2.7-1
- 12.3.0-1
- 12.3.11-1
- 12.3.12-1
- 12.3.14-1
- 12.3.15-1
- 12.3.15-2
- 12.3.3-1
- 12.3.4-1
- 12.3.5-1
- 12.3.6-1
- 12.3.7-1
- 12.3.8-1
- 12.4.0-1
- 12.4.1-1
- 12.4.2-1
- 12.4.3-1
- 12.4.4-1
- 12.4.5-1
- 12.5.1-1
- 12.5.2-1
- 12.5.3-1
- 12.5.4-1
- 12.5.5-1
- 12.5.6-1
- 12.5.7-1
- Intervalos de versiones afectados
- ECOSYSTEM: < 12.5.8-1
Actualiza a 12.5.8-1
phpunit/phpunit Packagist
- Versiones
- 3.7.0
- 3.7.1
- 3.7.10
- 3.7.11
- 3.7.12
- 3.7.13
- 3.7.14
- 3.7.15
- 3.7.16
- 3.7.17
- 3.7.18
- 3.7.19
- 3.7.2
- 3.7.20
- 3.7.21
- 3.7.22
- 3.7.23
- 3.7.24
- 3.7.25
- 3.7.26
- 3.7.27
- 3.7.28
- 3.7.29
- 3.7.3
- 3.7.30
- 3.7.31
- 3.7.32
- 3.7.33
- 3.7.34
- 3.7.35
- 3.7.36
- 3.7.37
- 3.7.38
- 3.7.4
- 3.7.5
- 3.7.6
- 3.7.7
- 3.7.8
- 3.7.9
- 4.0.0
- 4.0.1
- 4.0.10
- 4.0.11
- 4.0.12
- 4.0.13
- 4.0.14
- 4.0.15
- 4.0.16
- 4.0.17
- 4.0.18
- 4.0.19
- 4.0.2
- 4.0.20
- 4.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9.2.5
- 9.2.6
- 9.3.0
- 9.3.1
- 9.3.10
- 9.3.11
- 9.3.2
- 9.3.3
- 9.3.4
- 9.3.5
- 9.3.6
- 9.3.7
- 9.3.8
- 9.3.9
- 9.4.0
- 9.4.1
- 9.4.2
- 9.4.3
- 9.4.4
- 9.5.0
- 9.5.1
- 9.5.10
- 9.5.11
- 9.5.12
- 9.5.13
- 9.5.14
- 9.5.16
- 9.5.17
- 9.5.18
- 9.5.19
- 9.5.2
- 9.5.20
- 9.5.21
- 9.5.22
- 9.5.23
- 9.5.24
- 9.5.25
- 9.5.26
- 9.5.27
- 9.5.28
- 9.5.3
- 9.5.4
- 9.5.5
- 9.5.6
- 9.5.7
- 9.5.8
- 9.5.9
- 9.6.0
- 9.6.1
- 9.6.10
- 9.6.11
- 9.6.12
- 9.6.13
- 9.6.14
- 9.6.15
- 9.6.16
- 9.6.17
- 9.6.18
- 9.6.19
- 9.6.2
- 9.6.20
- 9.6.21
- 9.6.22
- 9.6.23
- 9.6.24
- 9.6.25
- 9.6.26
- 9.6.27
- 9.6.28
- 9.6.29
- 9.6.3
- 9.6.30
- 9.6.31
- 9.6.32
- 9.6.4
- 9.6.5
- 9.6.6
- 9.6.7
- 9.6.8
- 9.6.9
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 9.0.0, < 9.6.33
Actualiza a 9.6.33
phpunit/phpunit Packagist
- Versiones
- 10.0.0
- 10.0.1
- 10.0.10
- 10.0.11
- 10.0.12
- 10.0.13
- 10.0.14
- 10.0.15
- 10.0.16
- 10.0.17
- 10.0.18
- 10.0.19
- 10.0.2
- 10.0.3
- 10.0.4
- 10.0.5
- 10.0.6
- 10.0.7
- 10.0.8
- 10.0.9
- 10.1.0
- 10.1.1
- 10.1.2
- 10.1.3
- 10.2.0
- 10.2.1
- 10.2.2
- 10.2.3
- 10.2.4
- 10.2.5
- 10.2.6
- 10.2.7
- 10.3.0
- 10.3.1
- 10.3.2
- 10.3.3
- 10.3.4
- 10.3.5
- 10.4.0
- 10.4.1
- 10.4.2
- 10.5.0
- 10.5.1
- 10.5.10
- 10.5.11
- 10.5.12
- 10.5.13
- 10.5.14
- 10.5.15
- 10.5.16
- 10.5.17
- 10.5.18
- 10.5.19
- 10.5.2
- 10.5.20
- 10.5.21
- 10.5.22
- 10.5.23
- 10.5.24
- 10.5.25
- 10.5.26
- 10.5.27
- 10.5.28
- 10.5.29
- 10.5.3
- 10.5.30
- 10.5.31
- 10.5.32
- 10.5.33
- 10.5.34
- 10.5.35
- 10.5.36
- 10.5.37
- 10.5.38
- 10.5.39
- 10.5.4
- 10.5.40
- 10.5.41
- 10.5.42
- 10.5.43
- 10.5.44
- 10.5.45
- 10.5.46
- 10.5.47
- 10.5.48
- 10.5.49
- 10.5.5
- 10.5.50
- 10.5.51
- 10.5.52
- 10.5.53
- 10.5.54
- 10.5.55
- 10.5.56
- 10.5.57
- 10.5.58
- 10.5.59
- 10.5.6
- 10.5.60
- 10.5.61
- 10.5.7
- 10.5.8
- 10.5.9
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 10.0.0, < 10.5.62
Actualiza a 10.5.62
phpunit/phpunit Packagist
- Versiones
- 11.0.0
- 11.0.1
- 11.0.10
- 11.0.2
- 11.0.3
- 11.0.4
- 11.0.5
- 11.0.6
- 11.0.7
- 11.0.8
- 11.0.9
- 11.1.0
- 11.1.1
- 11.1.2
- 11.1.3
- 11.2.0
- 11.2.1
- 11.2.2
- 11.2.3
- 11.2.4
- 11.2.5
- 11.2.6
- 11.2.7
- 11.2.8
- 11.2.9
- 11.3.0
- 11.3.1
- 11.3.2
- 11.3.3
- 11.3.4
- 11.3.5
- 11.3.6
- 11.4.0
- 11.4.1
- 11.4.2
- 11.4.3
- 11.4.4
- 11.5.0
- 11.5.1
- 11.5.10
- 11.5.11
- 11.5.12
- 11.5.13
- 11.5.14
- 11.5.15
- 11.5.16
- 11.5.17
- 11.5.18
- 11.5.19
- 11.5.2
- 11.5.20
- 11.5.21
- 11.5.22
- 11.5.23
- 11.5.24
- 11.5.25
- 11.5.26
- 11.5.27
- 11.5.28
- 11.5.29
- 11.5.3
- 11.5.30
- 11.5.31
- 11.5.32
- 11.5.33
- 11.5.34
- 11.5.35
- 11.5.36
- 11.5.37
- 11.5.38
- 11.5.39
- 11.5.4
- 11.5.40
- 11.5.41
- 11.5.42
- 11.5.43
- 11.5.44
- 11.5.45
- 11.5.46
- 11.5.47
- 11.5.48
- 11.5.49
- 11.5.5
- 11.5.6
- 11.5.7
- 11.5.8
- 11.5.9
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 11.0.0, < 11.5.50
Actualiza a 11.5.50
phpunit/phpunit Packagist
- Versiones
- 12.0.0
- 12.0.1
- 12.0.10
- 12.0.2
- 12.0.3
- 12.0.4
- 12.0.5
- 12.0.6
- 12.0.7
- 12.0.8
- 12.0.9
- 12.1.0
- 12.1.1
- 12.1.2
- 12.1.3
- 12.1.4
- 12.1.5
- 12.1.6
- 12.2.0
- 12.2.1
- 12.2.2
- 12.2.3
- 12.2.4
- 12.2.5
- 12.2.6
- 12.2.7
- 12.2.8
- 12.2.9
- 12.3.0
- 12.3.1
- 12.3.10
- 12.3.11
- 12.3.12
- 12.3.13
- 12.3.14
- 12.3.15
- 12.3.2
- 12.3.3
- 12.3.4
- 12.3.5
- 12.3.6
- 12.3.7
- 12.3.8
- 12.3.9
- 12.4.0
- 12.4.1
- 12.4.2
- 12.4.3
- 12.4.4
- 12.4.5
- 12.5.0
- 12.5.1
- 12.5.2
- 12.5.3
- 12.5.4
- 12.5.5
- 12.5.6
- 12.5.7
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 12.0.0, < 12.5.8
Actualiza a 12.5.8
phpunit Ubuntu:Pro:16.04:LTS
- Versiones
- 4.7.6-1
- 4.8.16-1
- 5.1.3-1ubuntu1
- 5.1.3-1+build1
- 5.1.3-1+ubuntu1
- 5.1.3-1+ubuntu3
- 5.1.3-1+ubuntu3+esm1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:18.04:LTS
- Versiones
- 5.4.6-2
- 5.4.6-3
- 6.5.5-1ubuntu2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:20.04:LTS
- Versiones
- 7.5.6-1
- 8.5.2-1ubuntu1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:22.04:LTS
- Versiones
- 9.5.4-1
- 9.5.10-1ubuntu2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:24.04:LTS
- Versiones
- 9.6.10-1
- 9.6.13-1
- 9.6.15-1
- 9.6.16-1
- 9.6.17-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:25.10
- Versiones
- 11.5.3-1ubuntu4
- 11.5.19-1build4
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:26.10
- Versiones
- 13.0.0-2ubuntu6
- 13.2.6+ds-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
phpunit Ubuntu:26.04:LTS
- Versiones
- 11.5.19-1build4
- 13.0.0-2ubuntu6
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
Fuentes originales
- https://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85p
- https://github.com/sebastianbergmann/phpunit/commit/3141742e00620e2968d3d2e732d320de76685fda
- https://github.com/sebastianbergmann/phpunit/releases/tag/10.5.63
- https://github.com/sebastianbergmann/phpunit/releases/tag/11.5.50
- https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.8
- https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.52
- https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.33
- https://lists.debian.org/debian-lts-announce/2026/02/msg00009.html
- https://nvd.nist.gov/vuln/detail/CVE-2026-24765