Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-129496: PHP Timezone Cache Use-After-Free Leading to Remote Code Execution

Published Nov 19, 2026 · Updated today
Trending this week#7of 432,685 vulnerabilities
Mention activity · 30 daysAt least 200 mentions · peak 145 in a dayToday
CVSS9.2Critical · v4
EPSS8.1%95th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
PHP Group
IdentifiersCVE-2026-129496CWE-416 · Use After Free

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 PHP's file-based error log during module startup can allocate the timezone cache in startup memory that is subsequently freed while a reference remains. An early diagnostic during a worker's first request, before request initialization resets the cache, can dereference the freed memory. PHP-FPM and Apache mod_php workers can inherit the stale reference from their parent, and CGI workers are also affected. Crafted unauthenticated requests can crash workers and potentially execute arbitrary code. Affected upstream versions include PHP before 8.2.36, PHP 8.3 before 8.3.37, PHP 8.4 before 8.4.28, and PHP 8.5 before 8.5.13. Older vendor-maintained branches also require applicable backported fixes.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Unauthenticated remote exploitation can cause memory corruption and crash PHP-FPM, Apache mod_php, or CGI workers, disrupting application availability. Arbitrary code execution with PHP worker privileges is possible under additional memory-layout conditions, potentially compromising data and functionality accessible to that account. Code-execution proofs succeeded with known runtime addresses and configuration and heap-layout assumptions. Although ASLR remained enabled, 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 module-startup diagnostics, including invalid date.timezone values and problematic session settings, then restart the PHP master process and all workers to remove inherited stale state. Alternatively, direct PHP errors to a suitable logging destination such as syslog that avoids the vulnerable file-based timestamp-formatting path. 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 for the corresponding branch, or a later supported fixed release. For distribution-maintained or extended-support packages, install the vendor release containing the backported fix rather than judging patch status solely by the upstream version. Migrate unsupported installations to a supported fixed branch. Restart PHP-serving services after updating so the master process and all workers use the fixed code. The fix formats error-log timestamps in UTC outside a fully initialized active request, avoiding unsafe access to request-local timezone state.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit.

View more in app →
php-tzcache-rceThis standalone 12-file repository contains a Docker-based exploit demonstration for a claimed PHP timezone-cache use-after-free, identified in its documentation as CVE-2026-129496 and GHSA-gr4f-wgx5-jpfv. It is not associated with an exploit framework. Five files contain executable or build code: two Python scripts, a Bash harness, a minimal PHP endpoint, and a Dockerfile. Supporting files provide Compose orchestration, Apache/PHP configuration, documentation, licensing, and ignore rules. The top-level Python script primarily renders a banner, changes into lab/, and replaces itself with Bash running lab/run.sh. The Bash harness obtains the two PHP images, builds and starts vulnerable and patched containers, checks the PHP endpoint, invokes lab/poc.py, validates its report, and tears down the Compose project on exit. The PHP page only returns a distinctive liveness marker and PHP_SAPI; it is not a web shell. Docker and Apache configuration deliberately create a permissive, single-worker test environment bound to loopback. According to the documentation and visible PoC reporting logic, a startup warning written through PHP's file logger allocates the date extension's timezone cache in memory subsequently freed during module initialization. An oversized HTTP Basic token is used to overlap the stale allocation. A POST exceeding memory_limit then aborts input processing before request initialization clears the stale pointer, causing cleanup to invoke a forged destructor. The hardcoded witness demonstrates command execution as www-data and may terminate the vulnerable worker connection. The comparison logic requires the expected witness in the vulnerable container, no witness in the patched container, and no patched crash. The important limitation is that this is a known-address laboratory exploit, not a demonstrated blind Internet RCE: it uses privileged local container process inspection and reports validation on aarch64. Thread-safe builds and logging paths that do not initialize this cache are documented as outside this trigger. There are no visible external command-and-control or exfiltration endpoints. Image pulls are setup activity, and advisory/contact links are not exploit callbacks. The CVE, affected-version ranges, and reported execution results are repository claims, not independently verified findings. Much of lab/poc.py is missing from the supplied excerpt, so the precise memory layout, address-discovery implementation, and payload bytes cannot be fully audited. No original repository URL, git reference, or archive size was supplied; their empty/zero fields represent unavailable metadata.abraxas · Disclosed Nov 19, 2026 · python · bash · web · localOperationalCVE-2026-129496The supplied repository describes a PHP date-extension stale-pointer/use-after-free exploit and a controlled vulnerable-versus-patched Docker laboratory. It contains nine files: three Markdown documents, a Python exploit, a Bash orchestration script, a Dockerfile with an embedded PHP page, and three service/configuration files. The listed file sizes total 35,045 bytes; the repository URL, revision, and actual archive size were not supplied, so their metadata fields are left empty or zero. The documented chain begins when a startup diagnostic is written to a file-backed PHP error log, allocating a timezone-cache hash table in startup heap memory. Startup cleanup makes that storage reusable without clearing the cache pointer. A fresh worker inherits the pointer. An oversized Basic Authorization value places attacker-controlled data in the reused heap region before PHP request initialization. A POST exceeding memory_limit then aborts initialization before date RINIT clears the pointer. Post-deactivation cleanup destroys the forged table and invokes its substituted system() destructor on command bytes. poc/exploit.py supplies the exploitation and comparison logic, while poc/run.sh builds both containers, waits for workers without sending HTTP requests, launches the exploit, and tears down the environment. The lab exposes only loopback ports 18231 and 18232 and grants SYS_PTRACE for process inspection. The visible Python code uses root docker exec access to enumerate processes and read /proc mappings and memory. Consequently, this is a known-address laboratory demonstration, not a standalone HTTP-only ASLR-bypassing remote exploit or a privilege-escalation technique from an unprivileged Docker client. The repository reports command execution as www-data on PHP 8.4.27, with the worker subsequently aborting or faulting, and no command execution on 8.4.28. Commands are limited to 40 bytes; commands longer than 24 bytes reportedly cause a different post-execution crash. The documentation also reports a lower-prerequisite denial-of-service variant using an oversized POST without the forged authentication header. PHP-FPM is explicitly untested, and reported x86_64 testing used instruction translation. Important limitations: the supplied exploit.py content is truncated, so the complete forging, calibration, request construction, and argument-handling implementation cannot be audited. The CVE, advisory, affected-version ranges, fix versions, and experimental results are repository assertions and were not independently verified. The visible material is consistent with a genuine exploit demonstration rather than a detection-only script; no exfiltration service, reverse-shell callback, or persistence mechanism is apparent.evenomn · Disclosed Nov 23, 2026 · python · bash · web · localOperational
Exposure surface

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.

VendorProductType
PHP GroupPhpapplication
FAQ

Frequently asked questions

Is CVE-2026-129496 exploited in the wild?
As of Nov 24, 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 for the corresponding branch, or a later supported fixed release. For distribution-maintained or extended-support packages, install the vendor release containing the backported fix rather than judging patch status solely by the upstream 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 8.1% (95th percentile) as of Nov 24, 2026.
Activity feed

Recent activity

267 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+160 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity28Community discussion across Reddit, Mastodon, and other social sources.