CVE-2026-129474: Use-After-Free Vulnerability in PHP
A critical vulnerability in PHP may lead to remote code execution.

// on this page (8)
Introduction
The CVE-2026-129474 vulnerability refers to a critical issue in PHP that may allow for remote code execution. This flaw is caused by a use-after-free error that can be exploited by attackers who can manipulate request data.
What happened?
When PHP processes method calls through the magic methods __call() or __callStatic(), it may read stale values that refer to freed memory. If a fatal error, such as exceeding the memory limit, occurs during this processing, an attacker may cause memory corruption, crash the PHP worker, or, with knowledge of memory addresses, execute arbitrary code.
How the vulnerability works
The vulnerability arises from how PHP manages memory during the execution of magic methods. When the zend.exception_ignore_args setting is disabled, and fatal_error_backtraces is enabled, PHP may expose sensitive information that an attacker could exploit to compromise system security.
What is the real impact?
The impact of this vulnerability is severe, as it allows for remote code execution. An attacker who can manipulate request data may potentially compromise the integrity and confidentiality of the affected system, leading to serious consequences for application security and user data.
Which versions are affected?
- PHP 8.5.* before 8.5.13
How to fix
- Update PHP to version 8.5.13 or higher as soon as it becomes available.
- Check the
php.inisettings and ensure thatzend.exception_ignore_argsis enabled to mitigate the risk. - Monitor PHP error logs for anomalous behaviors that may indicate exploitation attempts.
Mitigation until you update
While an update is not possible, it is recommended to:
- Enable
zend.exception_ignore_argsin thephp.ini. - Limit server access and implement firewall rules to restrict suspicious requests.
- Review and strengthen the security of applications using PHP, especially those utilizing magic methods.
Conclusion
The CVE-2026-129474 vulnerability poses a significant risk to systems running affected versions of PHP. It is crucial for system administrators and developers to take immediate action to address this flaw and protect their applications.
// Fontes
- NVD — CVE-2026-129474 nvd.nist.gov ↗
- CVE.org — CVE-2026-129474 cve.org ↗
- GitHub github.com ↗