llamaCVEVulnerability Intelligence
/
phpunit

CVE-2026-24765

PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling

Texto original en inglés · Ver en español

Parche disponibleunsafe deserialization
Descargar PNG JSON
CVSS 3.1
7.8
Alta
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche5 versiones8.5.52 · 9.6.33 · 10.5.62 · 11.5.50 …
Exposición297 dDesde la divulgación, 27 ene 2026, 4:35 p. m.
Detección293 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Hoy es tranquila, pero podría madrugarte.Ponle una regla en tu SIEM y seguimos.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Monitoreo
Detectada
27 ene 26
28 ene 26
6 feb 26
17 nov 26
21 nov 26
27 ene 26
12 abr 26
25 jun 26
8 sept 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-24765 divulgada · CVSS 7.8 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen

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.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
6.4/ 10Medio
Vector 6.4 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
phpunit · phpunit/phpunit< 8.5.52
phpunit · phpunit/phpunit≥ 9.0.0 < 9.6.33
phpunit · phpunit/phpunit≥ 10.0.0 < 10.5.62
phpunit · phpunit/phpunit≥ 11.0.0 < 11.5.50
phpunit · phpunit/phpunit≥ 12.0.0 < 12.5.8
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
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
phpunit
Corregida 8.5.52, 9.6.33, 10.5.62, 11.5.50, 12.5.8 — —
Versiones corregidas8.5.529.6.3310.5.6211.5.5012.5.8
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/sebastianbergmann/phpunit/security/advisories/GHSA-vvj3-c3rp-c85p
Otrahttps://github.com/sebastianbergmann/phpunit/commit/3141742e00620e2968d3d2e732d320de76685fda
Otrahttps://github.com/sebastianbergmann/phpunit/releases/tag/10.5.63
Otrahttps://github.com/sebastianbergmann/phpunit/releases/tag/11.5.50
Otrahttps://github.com/sebastianbergmann/phpunit/releases/tag/12.5.8
Otrahttps://github.com/sebastianbergmann/phpunit/releases/tag/8.5.52
Otrahttps://github.com/sebastianbergmann/phpunit/releases/tag/9.6.33
Otrahttps://lists.debian.org/debian-lts-announce/2026/02/msg00009.html

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.