CVE-2026-129182: 
PHP Análisis y mitigación de vulnerabilidades

Vista general

CVE-2026-129182 is a use-after-free vulnerability in PHP 8.5 involving the repopulation of the last_fatal_error_backtrace global after executor shutdown. It affects PHP versions 8.5.0 through 8.5.12 (fixed in 8.5.13). The flaw was disclosed on November 19, 2026, via a GitHub Security Advisory. It carries a CVSS v4.0 base score of 9.2 (Critical) (GitHub Advisory).

Detalles técnicos

The root cause is a use-after-free (CWE-416) combined with incomplete cleanup (CWE-459) in PHP's fatal error backtrace handling. During request shutdown, PHP restores modified INI settings; if a fatal error occurs at this stage — triggered by conflicting max_memory_limit or zlib.output_compression/output_handler settings — the last_fatal_error_backtrace global is repopulated after the executor has already been torn down. The request heap is subsequently freed, but a diagnostic emitted early in a later request handled by the same PHP-FPM or mod_php worker can access the now-stale backtrace pointer, causing a heap use-after-free. Exploitation requires specific per-path INI configuration (e.g., max_memory_limit overrides or zlib.output_compression + output_handler via .user.ini) and an early diagnostic trigger in a subsequent request (via Apache per-directory config or FastCGI PHP_VALUE/PHP_ADMIN_VALUE parameters). This vulnerability is a follow-on to CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp), which addressed a related but narrower scenario (GitHub Advisory).

Impacto

Successful exploitation can result in memory corruption, PHP-FPM or mod_php worker crashes (availability impact), and potentially full remote code execution (RCE), though RCE through the specific identified entry points has not yet been demonstrated. An unauthenticated attacker could also read sensitive data from freed memory regions, exposing confidential server-side information. The integrity of the affected worker process is also at risk due to heap corruption (GitHub Advisory).

Explotabilidad

As of the disclosure date (November 19, 2026), there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation. The EPSS score is 0.0, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires specific server-side configuration conditions (per-path INI overrides and an early diagnostic trigger), which limits the attack surface compared to fully unauthenticated, configuration-agnostic vulnerabilities (GitHub Advisory).

Pasos de explotación

  1. Reconnaissance: Identify servers running PHP 8.5.0–8.5.12 with PHP-FPM or mod_php, particularly those with per-path INI configuration (e.g., .user.ini files or Apache <Directory> blocks).
  2. Trigger INI conflict at shutdown: Craft or leverage an application path where .user.ini sets zlib.output_compression=0 and output_handler=ob_gzhandler while the global config has zlib.output_compression=1, or where a path-specific max_memory_limit is lower than the global value and memory usage exceeds it at shutdown.
  3. Cause fatal error during INI restoration: Send a request to the targeted path that causes PHP to consume enough memory (or trigger the zlib conflict) so that restoring the global INI settings during shutdown raises a fatal error, repopulating last_fatal_error_backtrace after executor cleanup.
  4. Trigger early diagnostic in subsequent request: Send a follow-up request to the same worker (same PHP-FPM process or mod_php thread) that causes a diagnostic to be emitted before executor initialization — achievable via Apache per-directory config or by sending a PHP_VALUE/PHP_ADMIN_VALUE FastCGI parameter from a controlled or compromised frontend.
  5. Achieve use-after-free: The early diagnostic accesses the stale backtrace pointer in freed heap memory, causing memory corruption. Depending on heap layout, this may allow reading sensitive data or achieving code execution (GitHub Advisory).

Indicadores de compromiso

  • Logs: PHP error logs showing fatal errors during INI restoration at shutdown (e.g., messages referencing max_memory_limit exceeded or zlib/output_handler conflicts); repeated worker crash/restart events in PHP-FPM logs ([pool www] child ... exited on signal 11 (SIGSEGV)).
  • Process: Unexpected PHP-FPM worker crashes or restarts, particularly correlated with requests to paths using .user.ini with zlib.output_compression or output_handler overrides.
  • Network: Unusual or repeated FastCGI requests containing PHP_VALUE or PHP_ADMIN_VALUE parameters from the frontend proxy, especially those setting INI values that conflict with global configuration.
  • File System: Presence of .user.ini files in web-accessible directories containing zlib.output_compression, output_handler, or max_memory_limit directives that differ from global PHP configuration.

Mitigación y soluciones alternativas

Upgrade to PHP 8.5.13 or later, which contains the fix that prevents PHP from creating or consuming the fatal-error backtrace while the executor is inactive. As an immediate workaround, set fatal_error_backtraces=0 in php.ini and restart all PHP-FPM or mod_php workers; ensure that request-specific configuration (e.g., .user.ini) cannot re-enable this setting. Administrators should also audit per-path INI configurations for conflicting zlib.output_compression/output_handler or max_memory_limit overrides to reduce the attack surface (GitHub Advisory).

Reacciones de la comunidad

The vulnerability received broad coverage from security media outlets including The Hacker News, SecurityWeek, Infosecurity Magazine, and CyberSecurityNews, all noting PHP's November 2026 security release patching multiple critical flaws. Checkmarx published analysis noting the significance of the release. Community discussion on Mastodon (infosec.exchange) and developer blogs (ma.ttias.be, dev.to) highlighted the complexity of the exploitation preconditions. Patchstack flagged the release as relevant to WordPress hosting environments due to PHP-FPM usage (GitHub Advisory).

Recursos adicionales

Estado de corrección de la distribución Linux

Arreglar la disponibilidad en las principales distribuciones de Linux y sus lanzamientos.

Debian

Arreglado

bookworm

php8.2

Arreglado

sid

php8.4

Arreglado

trixie

php8.4

Arreglado

Ubuntu

Arreglado

bionic (esm-infra)

php7.2

No afectado

devel

php8.5

Afectados

focal (esm-infra)

php7.4

No afectado

jammy

php8.1

No afectado

noble

php8.3

No afectado

resolute

php8.5: 8.5.4-0ubuntu1.6

Arreglado

trusty (esm-infra-legacy)

php5

No afectado

xenial (esm-infra-legacy)

php7.0

No afectado

RHEL / CentOS

Afectados

RHEL 8

No afectado

RHEL 9

No afectado

RHEL 10

No afectado

Fuente: Este informe se generó usando IA

Relacionado PHP Vulnerabilidades:

CVE ID

Gravedad

Puntuación

Tecnologías

Nombre del componente

Exploit CISA KEV

Tiene solución

Fecha de publicación

GHSA-h8fv-vm7c-r6fhCRITICALN/A
  • PHP logoPHP
  • simplesamlphp/saml2
NoNoNov 24, 2026
GHSA-5vjv-wq72-r667MEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoSíNov 24, 2026
GHSA-3685-v2g8-q27vMEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoSíNov 24, 2026
GHSA-26cq-29p9-57xjMEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoSíNov 24, 2026
GHSA-pm4m-j3qg-fqqqMEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoSíNov 24, 2026

Evaluación gratuita de vulnerabilidades

Haz un benchmark de tu postura de seguridad en la nube

Evalúa tus prácticas de seguridad en la nube en 9 dominios de seguridad para evaluar tu nivel de riesgo e identificar brechas en tus defensas.

Evaluación de solicitudes

Recursos adicionales de Wiz

Obtén una demostración personalizada

¿Listo para ver a Wiz en acción?

"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
David EstlickCISO
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
Adam FletcherJefe de Seguridad
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."
Greg PoniatowskiJefe de Gestión de Amenazas y Vulnerabilidades