Skip to content
Threat Feed
critical advisory PoC updated

PHP: Remote Code Execution via Timezone Cache Use-After-Free (CVE-2026-129496)

PHP versions 8.2.x, 8.3.x, 8.4.x, and 8.5.x are vulnerable to a use-after-free in the timezone cache in non-thread-safe builds, which can lead to remote code execution or process crashes.

CVE search metadata

CVE search record: CVE-2026-129496. KEV: no. Product: PHP. Brief: PHP: Remote Code Execution via Timezone Cache Use-After-Free (CVE-2026-129496). Brief link: https://feed.craftedsignal.io/briefs/2026-11-php-timezone-use-after-free-cve-2026-129496/

Triage facts

Revision 2
Applicability
PHP
Evidence
Unknown
Severity
Critical
Action
Elevated
Sources
5 public sources
Freshness
Revision 2Nov 20, 06:40 UTC
Vulnerabilities
1 CVE
Source quality
C3Roughly even chance
Revision history 1 entry · Revision 2
  1. Revision 2

    added coverage for PHP (< 8.2.36) +4 products

    Changed: action_plan, affected_products, lastmod, qa_status, references, updates

    Sources: 1

Overview

A use-after-free vulnerability exists in the PHP date extension's timezone cache, specifically affecting non-thread-safe builds such as Apache mod_php or CGI. The issue arises when a diagnostic message is written to a file-based error_log during module startup, causing the timezone cache to be allocated in startup memory that is subsequently freed while a reference to it persists. A diagnostic raised early in the first request of a worker process then accesses this freed cache.

Attack Chain

An unauthenticated remote attacker can crash PHP-FPM, Apache mod_php, or CGI workers by sending a crafted request. Arbitrary code execution may be possible and has been demonstrated in lab environments using known memory addresses.

Impact

Successful exploitation can result in a crash of the affected PHP worker processes or potential arbitrary code execution as the user running the PHP service.

Recommendation

Upgrade to the patched PHP versions: 8.2.36, 8.3.37, 8.4.28, or 8.5.13. Until patching is possible, the PHP Group recommends configuring PHP to send error logs to syslog instead of a file-based error_log, correcting startup diagnostic issues (such as invalid date.timezone settings), and restarting the master and every worker process.

Mitigations

Inventory all PHP installations and apply updates to versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, or 8.6.0 depending on the environment branch.

immediate IT Operations

Vulnerabilities in PHP