Wiz rejoint Google Cloud : Faire de la magie ensemble

CVE-2026-129182: 
PHP Analyse et atténuation de la vulnérabilité

Aperçu

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).

Détails techniques

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).

Impact

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).

Exploitabilité

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).

Étapes d’exploitation

  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).

Indicateurs de compromis

  • 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.

Atténuation et solutions de contournement

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).

Réactions de la communauté

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).

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

Debian

Fixé

bookworm

php8.2

Fixé

sid

php8.4

Fixé

trixie

php8.4

Fixé

Ubuntu

Fixé

bionic (esm-infra)

php7.2

Non affecté

devel

php8.5

Affecté

focal (esm-infra)

php7.4

Non affecté

jammy

php8.1

Non affecté

noble

php8.3

Non affecté

resolute

php8.5: 8.5.4-0ubuntu1.6

Fixé

trusty (esm-infra-legacy)

php5

Non affecté

xenial (esm-infra-legacy)

php7.0

Non affecté

RHEL / CentOS

Affecté

RHEL 8

Non affecté

RHEL 9

Non affecté

RHEL 10

Non affecté

Source: Ce rapport a été généré à l’aide de l’IA

Connexe PHP Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-hg3m-q4fj-ggmqCRITICAL9.3
  • PHP logoPHP
  • wallabag/wallabag
NonNonNov 20, 2026
CVE-2026-63012MEDIUM6.5
  • PHP logoPHP
  • baserproject/baser-core
NonOuiNov 19, 2026
GHSA-crpp-mf59-rhpqMEDIUMN/A
  • PHP logoPHP
  • api-platform/core
NonOuiNov 20, 2026
GHSA-9wh3-m3m5-jffxMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NonOuiNov 20, 2026
GHSA-65w2-9r4h-848gMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NonOuiNov 20, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités