Skip to main content
Published on December 3, 2026
CVE-2026-129496 — PHP timezone cache, CVSS v4.0 9.2. On a server that writes a PHP error to an error_log file at startup, an unauthenticated request can crash a PHP-FPM, mod_php or CGI worker. PHP says code execution may be possible, but it has only been demonstrated with known memory addresses. Fixed in PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, released on November 19, 2026. Update, or clear your startup errors until you can.

The bug in two sentences

When PHP writes a diagnostic to an error_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_log file: 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 window closes once the worker completes its first normal request. It reopens with every new or recycled worker. The PHP advisory separates two outcomes:
  • The crash: a crafted HTTP request crashed a PHP-FPM worker with the default max_input_vars value 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.
Affected versions:
  • 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.
The PHP team says the faulty code has been present since PHP 5.3.18 and 5.4.8. The fix writes log timestamps in UTC as long as no request is fully initialized. The PHP project scores the flaw 9.2 in 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); 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 an error_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:
A line like these, dated from the last PHP-FPM or Apache start, marks an exposed server:
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, prefixed ALSA: 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 fixed php 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 every PHP Startup: line found above: a valid date.timezone value, deprecated session settings removed.
Test the configuration, then restart the master and all workers:

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.
Red Hat asks you to check the effective value in every PHP-FPM pool, virtual host and application override: changing only the command-line configuration is not enough. On AlmaLinux 10, for example, the 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

If you chose syslog, the expected value is error_log => syslog => syslog. If you cleared the diagnostics, run the grep 'PHP Startup:' again: no line should be more recent than the restart.

Restoring the error_log file after the update

Once PHP is patched and restarted, you can go back to your log file:
If you edited a pool, put its original value back as well before restarting. Do keep the configuration free of startup errors: there is no reason to go back on that one.

What next?

These settings are only a stopgap: the target remains your distribution’s fixed PHP package, or a rebuilt image. The same update fixes phpAfterShell (CVE-2026-126714) and the PHP-FPM flaw CVE-2026-129289. Turn on automatic security updates to get the next fixes without waiting. For any technical question, open a ticket from your OnetSolutions customer area.