The bug in two sentences
When PHP writes a diagnostic to anerror_log file while it starts, it caches timezones in memory that is freed right after, but keeps the reference. If a second diagnostic comes up at the very start of a worker’s first request, PHP reads that freed cache, which may already hold request data.
This is a use-after-free (CWE-416). The attack needs all of these conditions:
- a PHP build without thread safety;
- a diagnostic raised at startup, for example an invalid
date.timezone, or a warning or deprecation caused by session configuration; - that diagnostic actually written by PHP to an
error_logfile: PHP-FPM’s own log is not enough; - an early diagnostic in a worker’s first request, for example exceeding
max_input_vars, which the attacker triggers with the request.
- The crash: a crafted HTTP request crashed a PHP-FPM worker with the default
max_input_varsvalue and ordinary nginx header limits. The issue was also reproduced with CGI. - Code execution: demonstrated locally, on PHP-FPM and Apache mod_php, with known memory addresses and additional settings. A complete remote ASLR bypass is considered plausible, but has not been demonstrated.
- PHP before 8.2.36;
- PHP 8.3.0 through 8.3.36, fixed in 8.3.37;
- PHP 8.4.0 through 8.4.27, fixed in 8.4.28;
- PHP 8.5.0 through 8.5.12, fixed in 8.5.13.
AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N); NVD shows that score. Red Hat rates it “Critical” with 8.1 in CVSS 3.1, Ubuntu medium priority. The full advisory is GHSA-gr4f-wgx5-jpfv.
According to the CISA assessment shown by NVD, no exploitation is reported and the attack is not automatable. The CVE is not in the November 30, 2026 version of the KEV catalog.
Already updated for November’s other PHP flaws?
If you installed PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or the fixed Debian or Ubuntu package, for phpAfterShell (CVE-2026-126714), PHP-FPM (CVE-2026-129289) or PHP-FPM epoll (CVE-2026-129291), you are covered, provided you restarted PHP. The fixed versions are the same. Three cases still need action:- you only applied the mitigation from one of those advisories: it does not close this flaw;
- you stayed on the October versions (8.5.12, 8.4.27, 8.3.36, 8.2.35), released for php2shell;
- you did nothing for the backtrace flaw (CVE-2026-129474), which is specific to PHP 8.5: CVE-2026-129496 also affects older branches.
Sizing your exposure
The question to ask: does PHP write an error to anerror_log file every time it starts? PHP’s php.ini-production leaves error_log commented out: you, or a control panel, must have pointed it at a file.
Read the PHP-FPM configuration, not the command-line one:
Thread Safety => disabled means an affected build. If error_log shows a path, look for startup diagnostics in that file:
Command-line PHP can write to the same file. Compare the time of those lines with the service start time. We observed both messages on the
php:8.4.27-fpm Docker image. In the same test, an error_log set only in the pool did not receive the startup diagnostic, which went to the PHP-FPM log. That finding does not replace the update.Updating PHP, distro by distro
The real fix is a PHP package update followed by a restart of PHP-FPM and Apache: processes already running keep the old code. Take a snapshot of your VPS first.Debian
Ubuntu
The advisory is USN-9185-1.Don’t rely on the version printed by
php -v alone. Ubuntu backports the fix: Ubuntu 24.04 still reports PHP 8.3.6 once patched. Only the full package version, compared with your distribution’s advisory, is the reference.RHEL and AlmaLinux
Red Hat started shipping its fixes on November 20, 2026. AlmaLinux 8, 9 and 10 carried over each of these advisories under the same number, prefixedALSA:
RHEL 7 ELS gets
php-5.4.16-48.el7_9.2 (RHSA-2026:101337). EUS releases and the other extended support offerings have their own advisories, listed on the Red Hat CVE page.
cPanel & WHM
EasyApache 4 ships its own PHP packages. Its change log lists, for version 25.98 of November 19, 2026:
As of December 3, that change log mentions CVE-2026-129496 for neither
ea-php80 nor ea-php81. If any of your sites use them, move those sites to a fixed version, or clear the startup diagnostics in that version’s php.ini.
Docker and Kubernetes containers
Rebuild your images on a fixedphp base image (8.2.36, 8.3.37, 8.4.28 or 8.5.13), all available on Docker Hub, then redeploy your containers or pods. Check the version inside:
Clearing PHP startup errors until you can update
If you can’t update right away, PHP and Red Hat (RHSB-2026-020) give two measures. Each removes the demonstrated trigger; neither fixes the flaw.Remove the startup diagnostics
Fix everyPHP Startup: line found above: a valid date.timezone value, deprecated session settings removed.
Send PHP errors to syslog
The other measure avoids writing to a file. Your PHP errors then land in the system log instead of the usual file.www pool shipped with the package points error_log at a file, which takes precedence over /etc/php.d/. Replace the line in /etc/php-fpm.d/www.conf, then restart PHP-FPM:
Changing
$_REQUEST or cookie settings is not a complete mitigation: the PHP advisory describes a path on Apache that does not depend on them.Checking the mitigation
error_log => syslog => syslog. If you cleared the diagnostics, run the grep 'PHP Startup:' again: no line should be more recent than the restart.

