llamaCVEVulnerability Intelligence
/
PHP

CVE-2026-129182

PHP memory corruption via stale last_fatal_error_backtrace

A remote attacker without logging in can corrupt memory, crash workers, and possibly run their own code.

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

Crítica · CVSS alto en tecnología listada, EPSS ≥ 10 %Solo en configuraciones específicasParche disponibleuse-after-free
Descargar PNG JSON
CVSS 4.0
9.2
Crítica
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión8.5.13
Exposición2 dDesde la divulgación, 19 nov 2026, 9:41 a. m.
EPSS ≥ 10 %20 nov 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Sin explotación conocida, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Ponla primerita en tu backlog, porfa.No es tan grave… si la atiendes esta semana.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Umbral EPSS
Remediación
Monitoreo
Detectada
Fuente: NIST NVD
Fuente: ENISA EUVD
Verificada
09:41 a. m.
10:25 a. m.
12:19 p. m.
07:00 p. m.
11:56 p. m.
09:30 a. m.
10:26 a. m.
01:46 p. m.
09:41 a. m.
10:43 p. m.
11:44 a. m.
12:45 a. m.
01:46 p. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-129182 divulgada · CVSS 9.2 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

A use-after-free flaw in PHP (from the PHP Group) lets an attacker corrupt memory, crash PHP-FPM or mod_php workers, and possibly run their own code. It can be reached remotely without logging in, but only on servers with specific per-path or per-directory configuration, where a fatal error during request shutdown leaves stale data that a later request on the same worker then uses.

Affects PHP 8.5.0 through 8.5.12 under PHP-FPM or mod_php, and only with specific memory-limit or output-compression settings plus a later request on the same worker. Fixed in 8.5.13.

¿Qué significa?After PHP shuts down following a fatal error, a stored fatal-error backtrace global can be filled in again and later used after its memory is freed (use-after-free). This can corrupt memory and crash workers. The advisory says it could potentially lead to remote code execution, which was not demonstrated through these entry points.
¿Quién está afectado?PHP 8.5.x from 8.5.0 up to but not including 8.5.13 is affected; running php -v shows the installed version. The bug also needs PHP-FPM or mod_php, a shutdown fatal error (for example from max_memory_limit set in both global and path-specific configuration, or conflicting zlib.output_compression and output_handler settings), and a later request on the same worker that triggers a diagnostic before executor initialization. That can happen through Apache per-directory config or an FPM frontend sending PHP_VALUE/PHP_ADMIN_VALUE.
¿Qué hacer?Upgrade PHP to 8.5.13 or later, the first version outside the affected range. The facts list no workaround.
Descripción original del registro (php)

Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution. This issue affects PHP versions 8.5.* before 8.5.13.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
PHP 8.5.x before 8.5.13“Affected versions >= 8.5.0, < 8.5.13”
02
Running under PHP-FPM or mod_php“Both shutdown cases are possible with PHP-FPM and mod_php.”
03
Shutdown fatal error needs per-path max_memory_limit, or zlib.output_compression with output_handler conflicting settings“When max_memory_limit is specified in both the global and a path-specific configuration, restoring the global limit can fail if memory consumption still exceeds that limit.”
04
A later request on the same worker must trigger a diagnostic before executor initialization (Apache per-directory config, or FPM frontend sending PHP_VALUE/PHP_ADMIN_VALUE)“Exploitation also requires a diagnostic before executor initialization in a later request handled by the same worker.”
¿Quién debe revisar?Teams running PHP 8.5.x before 8.5.13 under PHP-FPM or mod_php with per-path max_memory_limit or zlib/output_handler overrides, plus Apache per-directory config or FPM PHP_VALUE.
No protegePHP 8.5.12 only fixed the earlier generic case; it does not cover these shutdown scenarios.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
7.1/ 10Alto
Vector 7.1 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
PHP≥ 8.5.0 < 8.5.13
8.5.0
8.5.13
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
PHP
Corregida 8.5.13 — —
Versiones corregidas8.5.13
Explotación

Arsenal público

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

Registro
EscenarioGENERALphp
Referencias
Fabricantehttps://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m

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