CVE-2026-129496: PHP Timezone Cache Use-After-Free Leading to Potential RCE
- Vendor
- PHP Group
CVE-2026-129496 is a use-after-free vulnerability in PHP's ext-date timezone cache affecting non-thread-safe builds. A diagnostic written to a file-based PHP error log during module startup can allocate the timezone cache in startup memory that is subsequently freed without clearing its reference. An early diagnostic during a worker's first request, before request initialization resets the cache, can access the freed memory through error-log timestamp formatting. Startup triggers include an invalid date.timezone value or session configuration warnings; a request exceeding max_input_vars can trigger the subsequent access. PHP-FPM and Apache mod_php workers can inherit the stale reference from their parent, and CGI is also affected. Vulnerable versions include PHP before 8.2.36, 8.3.x before 8.3.37, 8.4.x before 8.4.28, and 8.5.x before 8.5.13. Exploitation can crash workers and potentially execute arbitrary code.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An unauthenticated remote attacker can crash affected PHP-FPM, Apache mod_php, or CGI workers, causing denial of service. Successful code execution would compromise confidentiality, integrity, and availability within the PHP worker's privileges. Command-execution demonstrations succeeded with known runtime addresses and additional configuration and heap-layout assumptions. ASLR remained enabled, but a complete independent remote ASLR bypass was not demonstrated. Newly created or recycled workers remain exposed until they complete their first normal request.
Mitigation
If you can’t patch tonight, do this now.
Correct configuration errors and deprecated settings that generate startup diagnostics, including invalid date.timezone values and problematic session settings, then restart the PHP master process and all workers to remove inherited stale references. Alternatively, direct PHP errors to a suitable logging destination such as syslog that avoids the vulnerable file-based timestamp-formatting path. PHP-FPM's own error log alone does not satisfy the trigger condition. Changes to cookie handling, request_order, or auto_globals_jit are not complete mitigations because the demonstrated Apache cleanup path does not require those settings.
Remediation
Patch, then assume compromise.
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release for the deployed branch. For distributor-maintained builds, install the vendor package release containing the backported fix rather than assessing patch status solely from the upstream base version. Restart PHP-serving services after updating, replacing the master process and all workers. Rebuild and redeploy affected container images or custom runtimes. The fix formats error-log timestamps in UTC outside a fully initialized active request, avoiding unsafe access to request-local timezone state.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-129496 exploited in the wild?
- As of Nov 28, 2026, Mallory has no reports of CVE-2026-129496 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-129496?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-129496, the earliest disclosed Nov 19, 2026.
- Is there a patch for CVE-2026-129496?
- Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13, or a later fixed release for the deployed branch. For distributor-maintained builds, install the vendor package release containing the backported fix rather than assessing patch status solely from the upstream base version.
- What products are affected by CVE-2026-129496?
- PHP Group Php.
- How severe is CVE-2026-129496?
- CVE-2026-129496 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 11.1% (97th percentile) as of Nov 28, 2026.
Recent activity
341 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.