CVE-2024-11235
Reference counting in php_request_shutdown causes Use-After-Free
Reported by php · Published April 4, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.3-cli | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php83 | Alpine | 8.3.18-r0 |
| php8.3-bcmath | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-odbc | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3 | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-opcache | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-ffi | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-zip | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-process | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-snmp | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-intl | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.3-gd | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
27 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.4.*, 8.3.* |
| PHP Group | PHP | 8.4.*, 8.3.* |
Timeline
- Mar 13, 2025 CVE Published
- Mar 14, 2025 PoC Published (7 in total, the first dated here)
- Apr 5, 2025 EPSS Score (30 in total, the first dated here)
- Apr 12, 2025 Coalition ESS Score (13 in total, the first dated here)
- Aug 15, 2026 Security Advisory (12 in total, the first dated here)
- Oct 23, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-11235
vulnetix vdb fixes CVE-2024-11235
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-11235/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart