What’s Vulnerable › Vulnerabilities
CVE-2024-11235: Reference counting in php_request_shutdown causes Use-After-Free
- Severity: high (CVSS 8.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-04-04 · updated 2026-06-17
- Weakness: CWE-416
Description
In PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5, a code sequence involving __set handler or ??= operator and exceptions can lead to a use-after-free vulnerability. If the third party can control the memory layout leading to this, for example by supplying specially crafted inputs to the script, it could lead to remote code execution.
Affected products
- PHP: from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5 — fixed in 8.3.19, 8.4.5
How to fix
Upgrade to a fixed version: PHP 8.3.19, 8.4.5. Check the vendor advisory for mitigations.
References
- https://github.com/php/php-src/security/advisories/GHSA-rwp7-7vc6-8477
- https://github.com/php/php-src/security/advisories/GHSA-rwp7-7vc6-8477
Get alerted when CVE-2024-11235 or the next vulnerability affects your stack