Skip to main content

Timezone cache use-after-free in PHP

Publication Date 2026-11-19
Severity Critical
Type Remote Code Execution
Affected PHP Versions
  • 7.2.0-7.2.34
  • 7.3.0-7.3.33
  • 7.4.0-7.4.33
  • 8.1.0-8.1.34
  • 8.2.0-8.2.35
  • 8.3.0-8.3.36
  • 8.4.0-8.4.27
  • 8.5.0-8.5.12
Fixed Product Versions
  • ZendPHP 7.2
  • ZendPHP 7.3
  • ZendPHP 7.4
  • ZendPHP 8.1
  • ZendPHP 8.2
  • ZendPHP 8.3
  • ZendPHP 8.4
  • ZendPHP 8.5
  • ZendServer 2021.4.10

CVE Details

In non-thread-safe builds (standard used in PHP-FPM and most mod_php deployments), a diagnostic written to a file-based error_log during module startup (such as for an invalid date.timezone value or session configuration warning) causes the timezone cache to be allocated in startup memory that is subsequently freed while a reference to it is kept. A diagnostic raised early in the first request of a worker (such as the max_input_vars warning) then accesses the freed cache, leading to potential remote code execution or denial of service.

Recommendations

Ensure you have a valid date.timezone declaration in your php.ini; restart PHP-FPM after updating the value to correct it.

When possible, update to a known patched version of PHP.