Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

PHP Timezone Cache Use-After-Free (CVE-2026-129496)

CVE-2026-129496 is a use-after-free in the PHP timezone cache.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-129496
Vendor
PHP Group
Affected Product
PHP ext-date
Exploitation
Not confirmed
Published
2026-11-19

The PHP security advisory says affected, non-thread-safe builds can retain a reference to freed startup memory. An unauthenticated request can then crash a fresh worker; code execution may be possible under narrower conditions. PHP assigns CVSS 4.0 9.2 Critical.The defect affects PHP itself, including deployments using PHP-FPM, Apache mod_php and CGI under the stated conditions. The demonstrated code execution paths used known memory addresses and additional assumptions. They do not establish exploitation of every PHP installation.

What it allows

How Does CVE-2026-129496 Work?

PHP formats file-based error-log timestamps with the configured timezone. In a non-thread-safe build, a late startup diagnostic can allocate its timezone cache in temporary memory. Startup then frees that memory while an internal reference survives into a new worker.

An early diagnostic during the worker's first request can access the freed cache before the date extension resets it. PHP says this can corrupt memory and crash the worker. Its advisory describes possible code execution with worker privileges, but the local demonstrations required known memory addresses and other conditions.

FPM and Apache workers may inherit the stale reference from their parent process. The window closes after a worker completes its first normal request, then can recur when another worker starts or recycles. PHP also reproduced the flaw with CGI.

What Do The Demonstrations Establish?

PHP reports an unauthenticated request crashing an FPM worker under ordinary web-server limits. Its code execution demonstrations used additional runtime and memory conditions. Treat the latter as evidence of possible impact, not proof of a generally reliable remote attack.

For prioritization, pair the Vulnerability Intelligence platform with an inventory of PHP versions and worker configuration. The vulnerability intelligence glossary explains how exposure and impact inform triage.

Who is affected

Version Check

PHP
Release LineAffected RangeFixed In
8.2.x8.2.0 to before 8.2.368.2.36
8.3.x8.3.0 to before 8.3.378.3.37
8.4.x8.4.0 to before 8.4.288.4.28
8.5.x8.5.0 to before 8.5.138.5.13
Release ranges source

For distribution packages and custom builds, check the supplier’s advisory.

Affected ranges apply to the PHP CVE record. Exploitability also depends on the documented build and logging conditions.

Which PHP Versions Are Affected?

The PHP CVE record lists 8.2.0 through versions before 8.2.36, 8.3.0 through versions before 8.3.37, 8.4.0 through versions before 8.4.28, and 8.5.0 through versions before 8.5.13. PHP lists those four fixed releases in its 19 November 2026 changelog. Check the installed branch and the version actually serving requests.

Version alone does not establish whether this specific trigger is reachable. The PHP advisory requires a non-thread-safe build, a suitable startup diagnostic written through PHP's file-based error_log path, and another diagnostic early in a fresh worker's request. FPM's own error log alone does not satisfy the PHP file-log condition.

Check startup logs for timezone or session configuration diagnostics and confirm the active PHP error-log destination. Then identify public-facing FPM, Apache mod_php and CGI workloads using the affected branches. Use the patch management process to record the deployed and replacement build.

Timeline

  1. 2026-11-19

    PHP published GHSA-gr4f-wgx5-jpfv and the CVE record for the timezone cache flaw.

  2. 2026-11-19

    PHP released fixes in 8.2.36, 8.3.37, 8.4.28 and 8.5.13.

What to do

  1. Inventory active PHP workers

    Record the PHP branch and actual version serving each FPM, Apache mod_php or CGI workload. Include containers and bundled runtimes, and identify non-thread-safe builds.

  2. Patch each affected branch

    Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13, as appropriate. Follow the distribution vendor's advisory if it backports the fix under a different package version.

  3. Verify the running version

    Restart the PHP master process and workers after deployment. Check the version reported by the running service, then compare it with the fixed branch release or vendor patch guidance.

  4. Remove the startup trigger while patching

    Correct configuration warnings and deprecated settings that generate startup diagnostics. PHP also identifies a suitable non-file logging destination, such as syslog, as a temporary way to avoid the demonstrated trigger.

  5. Review worker failures

    Inspect PHP and web-server logs for repeated crashes of fresh workers after early request diagnostics. Treat such events as leads for investigation rather than proof that this CVE was exploited.

What Brandefense can do

Frequently Asked Questions

What is CVE-2026-129496?

It is a PHP timezone-cache use-after-free that can let an unauthenticated request crash a fresh worker under specific build and logging conditions. PHP says code execution may be possible.

Does every PHP server using an affected version face the same trigger?

No. PHP requires a non-thread-safe build, a suitable startup diagnostic written through PHP's file-based error log, and an early diagnostic in a fresh worker.

Which PHP releases contain the fix?

PHP lists 8.2.36, 8.3.37, 8.4.28 and 8.5.13 as fixed releases. Verify the version of the running worker or the equivalent vendor-backported package.

Has remote code execution been demonstrated against ordinary remote targets?

PHP reports local code execution demonstrations with known memory addresses and additional conditions. Its advisory says a complete independent remote ASLR bypass was not demonstrated.

Sources

  1. Timezone Cache Use-After-Free Security AdvisoryPHP Group
  2. CVE-2026-129496 RecordPHP Group via CVE Program
  3. PHP 8 ChangeLogPHP Group
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →