CVE-2026-129496 is a use-after-free in PHP’s timezone cache, rated critical and fixed in 8.2.36, 8.3.37, 8.4.28 and 8.5.13 on 19 November 2026. Red Hat ties the risky setup to PHP writing startup diagnostics to a file-based error_log. Clean up your startup warnings, then update.
On this page
What is CVE-2026-129496?
It’s one of the seven critical bugs PHP fixed on 19 November 2026. PHP’s ChangeLog lists it under the date extension as “Timezone cache use-after-free can lead to remote code execution” (advisory GHSA-gr4f-wgx5-jpfv, CVSS 4.0 9.2). In short: PHP caches timezone data, and under the right conditions a worker can end up reading part of that cache after it has been freed. Use-after-free bugs like this can crash a worker and, in the worst case, be turned into code execution.
It affects all four supported branches. Red Hat’s bulletin lists RHEL 8, 9 and 10 among the affected products, so this isn’t only a PHP 8.5 problem.
A caveat before the details: we couldn’t load PHP’s advisory page for this CVE when we wrote this, so the conditions below come from Red Hat’s bulletin, which publishes a mitigation for each CVE, plus extra detail that other analyses reported.
When does it matter?
Red Hat’s stopgap for this CVE is to set error_log = syslog and to fix startup diagnostics and deprecated settings. That points straight at the trigger: PHP writing diagnostics to a log file while it starts up.
Semgrep’s analysis lists the fuller set of conditions:
- a startup or early diagnostic, such as a warning about an invalid
date.timezoneor a deprecated ini setting, - written to a file-based
error_log, - in a fresh or recycled worker,
- on a non-thread-safe build, which is what most Linux PHP-FPM and mod_php packages are.
PHP Architect also reported that Apache mod_php workers are affected, as well as PHP-FPM.
The useful part is the flip side. If your PHP starts without any warnings, or logs to syslog or stderr, the known conditions for this bug aren’t met. Plenty of servers print the same startup warning every time a worker starts, and nobody notices because nobody reads that log. That’s the setup to fix.
Step 1: find your startup warnings
Work with the PHP that serves your website, not the CLI. They usually read different ini files. How to find the right one.
# Test the FPM config; startup warnings print here too
sudo php-fpm8.3 -t
# Which error_log, log_errors and date.timezone the FPM runtime uses
php-fpm8.3 -i | grep -E '^(error_log|log_errors|date\.timezone) '
# Pool files can override error_log per site
grep -rn 'error_log' /etc/php/8.3/fpm/
On RHEL-family systems the files live in /etc/php.ini, /etc/php.d/ and /etc/php-fpm.d/, and the binary is usually just php-fpm.
Then read the log file that error_log points to and look at what appears when workers start or restart:
sudo grep -E 'PHP (Startup|Warning|Deprecated)' /var/log/php8.3-fpm.log | tail -20
Use the path from your own error_log setting. Typical finds are a missing or invalid date.timezone, an extension loaded twice, an extension that can’t be loaded, and ini directives that were deprecated in a newer PHP version than the one the config was written for.
Step 2: fix what you find
Most startup warnings take a minute to fix.
Set a valid timezone in the php.ini your web runtime uses:
date.timezone = UTC
Any valid identifier works (Europe/London, America/New_York). To see what PHP ends up using:
php -r 'echo date_default_timezone_get(), PHP_EOL;'
That command uses the CLI ini, so confirm the FPM value with php-fpm8.3 -i as above.
Remove duplicate extension= lines. Packages often drop their own file into conf.d/, and an old manual line in php.ini then loads the same extension twice.
Delete or update deprecated directives that a newer PHP warns about.
Run php-fpm8.3 -t again. It should come back clean.
Step 3 (stopgap): send PHP errors to syslog
If you can’t clean up the warnings or upgrade straight away, Red Hat’s stopgap is:
error_log = syslog
Know what changes before you do it:
- PHP errors stop going to your PHP log file and go to the system log instead (the journal,
/var/log/syslogor/var/log/messages, depending on the distribution). - Anything that reads the old file, such as a log shipper, a monitoring alert or a hosting panel’s log viewer, goes quiet.
- PHP tags its syslog entries with
syslog.ident, which isphpunless you’ve changed it. With journald you can read them withsudo journalctl -t php --since today.
Check pool files too: a php_admin_value[error_log] in a pool overrides php.ini. Restart PHP-FPM or Apache afterwards; a reload can leave old workers running. Red Hat says to remove its mitigations once you’ve patched, so put error_log back if you rely on the file.
Step 4: update and restart
| Branch | Fixed in |
|---|---|
| 8.5 | 8.5.13 |
| 8.4 | 8.4.28 |
| 8.3 | 8.3.37 |
| 8.2 | 8.2.36 |
| 8.6 | 8.6.0 (released the same day with the same fixes) |
Distribution packages carry the fix under their own numbers. Debian’s security updates php8.4 8.4.28-1deb13u1 (trixie) and deb12u1 (bookworm) are the fixed upstream releases. cPanel’s EasyApache 4 release 25.98 shipped 8.2.36 to 8.5.13 and listed CVE-2026-129496 in its php8.2 8.2.36-1ea-php74 backport. On Ubuntu, GetPageSpeed reported on 19 November that this CVE was still marked “needs triage”; check Ubuntu’s CVE page for the ID before assuming a package has it.
To check a package changelog:
zgrep CVE-2026-129496 /usr/share/doc/php8.3-common/changelog.Debian.gz
rpm -q --changelog php-common | grep CVE-2026-129496
Then restart:
sudo systemctl restart php8.3-fpm # or apache2 / httpd for mod_php
In containers, rebuild the image and redeploy. A running container keeps the PHP it was built with. Docker guide.
Is it being exploited?
As of 20 November there were no public reports of attacks using CVE-2026-129496, and it wasn’t on CISA’s Known Exploited Vulnerabilities list. It’s about how PHP itself is configured and started, so a CMS, plugin or theme update won’t change your exposure either way.
While you’re in the config
The other critical fixes in the same release also depend on configuration: FastCGI connection reuse, session upload progress and PHP 8.5’s new backtrace settings. Our quick checks for the November release go through each one, and the php.ini hardening checklist covers the settings worth fixing for good.
Rather not do it yourself? We patch and verify one server, from €79.
Sources
- Red Hat: RHSB-2026-020: Multiple vulnerabilities in PHP (mitigations per CVE)
- GitHub php-src advisory GHSA-gr4f-wgx5-jpfv: Timezone cache use-after-free can lead to remote code execution
- php.net: PHP 8 ChangeLog (8.5.13 security fixes)
- php.net: PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13 released (19 Nov 2026)
- cPanel: EasyApache 4 change log (25.98, 19 Nov 2026)
- Semgrep: 18 vulnerabilities hit the PHP runtime
- PHP Architect: PHP's November security release: seven critical fixes, explained
- GetPageSpeed: PHP November 2026 security release (distribution status)