CVE-2026-129496: Timezone Cache Use-After-Free Vulnerability
A critical vulnerability in PHP may allow remote code execution.

// on this page (8)
Introduction
The CVE-2026-129496 vulnerability affects multiple versions of PHP and may lead to remote code execution. This flaw is classified as critical and should be addressed urgently by all PHP users.
What happened?
A problem was identified in the timezone cache of PHP that can be exploited in non-thread-safe deployments. When an error is logged during module startup, the cache is allocated in memory but freed while a reference to it still exists. If a warning is raised during the first request of a worker, the freed cache can be accessed, leading to potential crashes and arbitrary code execution.
How the vulnerability works
The vulnerability results from a use-after-free in the timezone cache. This means that memory that has been freed can be reused unsafely, allowing an unauthenticated attacker to send a crafted request that may crash PHP-FPM, Apache mod_php, or CGI. Although active exploitation has not been confirmed, the potential for arbitrary code execution is a significant concern.
What is the real impact?
- Potential for remote code execution.
- Crashes of PHP-FPM, Apache mod_php, or CGI.
- Impact on the availability and security of applications using PHP.
Which versions are affected?
- PHP 8.2.* before 8.2.36
- PHP 8.3.* before 8.3.37
- PHP 8.4.* before 8.4.28
- PHP 8.5.* before 8.5.13
How to fix
- Check the version of PHP in use.
- Upgrade to a patched version of PHP as indicated in the vendor's release notes.
- Test the application after the upgrade to ensure there are no compatibility issues.
- Monitor error logs to identify any issues that may arise after the upgrade.
Mitigation while you update
While an update is not possible, consider the following measures:
- Disable error display in production environments.
- Review and limit server access to minimize the risk of exploitation.
- Implement additional security measures such as firewalls and intrusion detection systems.
Conclusion
The CVE-2026-129496 vulnerability poses a significant risk to PHP applications. It is crucial for system administrators and developers to update to secure versions as quickly as possible to protect their systems.
// Fontes
- NVD — CVE-2026-129496 nvd.nist.gov ↗
- CVE.org — CVE-2026-129496 cve.org ↗
- GitHub github.com ↗