CVE-2026-129481
PHP memory corruption in session shutdown cleanup
A remote attacker could crash a worker or corrupt memory by triggering a failing session cleanup, without logging in.
Texto original en inglés · Ver en español
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-129481 divulgada · CVSS 9.2 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
PHP's session extension has a use-after-free flaw: if a fatal error occurs in an application callback during session shutdown, a stale pointer to the script filename can later be freed by another request handled by the same worker. An attacker who can trigger such a failing cleanup could crash the worker or corrupt memory, reaching it remotely without logging in, though it only applies when the filename sits in request memory, such as when the script is not cached by OPcache.
Affects PHP 8.3 before 8.3.37, 8.4 before 8.4.28 and 8.5 before 8.5.13 when a session cleanup callback fails fatally and the script filename sits in request memory. Fixed in 8.3.37, 8.4.28 and 8.5.13.
Descripción original del registro (php)
Use-after-free after interrupted session shutdown. The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache. This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
PHP |
Corregida | 8.3.37, 8.4.28, 8.5.13 | — | — |
8.3.378.4.288.5.13Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/php/php-src/security/advisories/GHSA-g3vh-838c-65v7Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
