CVE-2024-11235
PHP vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2024-11235) was discovered in PHP versions 8.3. before 8.3.19 and 8.4. before 8.4.5. The vulnerability occurs when a code sequence involving __set handler or ??= operator and exceptions leads to a use-after-free condition. This vulnerability was discovered and disclosed in March 2025 (PHP Advisory).

Technical details

The vulnerability stems from a reference counting issue in phprequestshutdown. When an exception handler frees variables via cleanuplivevars for termination, the subsequent phprequestshutdown performs reference counting on these already freed variables using zendgcrefcount(read) and zendgcdelref(write), resulting in use-after-free. The vulnerability has been assigned a CVSS 4.0 Base Score of 9.2 (CRITICAL) with the vector string 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 (NVD).

Impact

If an attacker can control the memory layout leading to this vulnerability, for example by supplying specially crafted inputs to the script, it could lead to remote code execution. Since zendmmfree_small stores metadata in freed memory chunks, this use-after-free vulnerability may allow manipulation of the Zend allocator through reference count behaviors (PHP Advisory).

Mitigation and workarounds

The vulnerability has been patched in PHP versions 8.3.19 and 8.4.5. Users are advised to upgrade to these patched versions to mitigate the risk. Ubuntu has also released security updates to address this vulnerability in their supported versions (Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59943HIGH8.1
  • PHPPHP
  • thorsten/phpmyfaq
NoYesOct 03, 2025
GHSA-w22c-pw5m-482xLOW3.3
  • PHPPHP
  • auth0/wordpress
NoYesOct 01, 2025
GHSA-hjfh-5jmm-xr24LOW3.3
  • PHPPHP
  • auth0/login
NoYesOct 01, 2025
GHSA-7jp2-5h22-m432LOW3.3
  • PHPPHP
  • auth0/symfony
NoYesOct 01, 2025
CVE-2025-58769LOW3.3
  • PHPPHP
  • auth0/auth0-php
NoYesOct 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management