Reference counting in php_request_shutdown causes Use-After-Free (CVE-2024-11235)
A use-after-free vulnerability exists in PHP versions 8.3 prior to 8.3.19 and 8.4 prior to 8.4.5 involving reference counting during php_request_shutdown. This flaw can be triggered by specific code sequences using the __set handler or the ??= operator combined with exceptions. Exploitation requires control over memory layout, potentially allowing remote code execution. Red Hat has issued security updates addressing this vulnerability.
AI Analysis
Technical Summary
CVE-2024-11235 is a use-after-free vulnerability in PHP's reference counting mechanism during the php_request_shutdown process. It occurs in PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5 when certain code sequences involving the __set handler or the null coalescing assignment operator (??=) and exceptions are executed. An attacker who can influence memory layout by supplying crafted inputs to a PHP script may exploit this flaw to achieve remote code execution. Red Hat has released patches for affected PHP packages in Red Hat Enterprise Linux 9 to mitigate this issue.
Potential Impact
The vulnerability allows a remote attacker to potentially execute arbitrary code by exploiting a use-after-free condition in PHP's shutdown sequence. This could lead to full system compromise if exploited successfully. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
A patch is available and should be applied promptly. Red Hat has released updated PHP packages (e.g., php-8.3.19 and php-8.4.5) that fix this vulnerability. Users should update to these or later versions to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
Reference counting in php_request_shutdown causes Use-After-Free (CVE-2024-11235)
Description
A use-after-free vulnerability exists in PHP versions 8.3 prior to 8.3.19 and 8.4 prior to 8.4.5 involving reference counting during php_request_shutdown. This flaw can be triggered by specific code sequences using the __set handler or the ??= operator combined with exceptions. Exploitation requires control over memory layout, potentially allowing remote code execution. Red Hat has issued security updates addressing this vulnerability.
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-11235 is a use-after-free vulnerability in PHP's reference counting mechanism during the php_request_shutdown process. It occurs in PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5 when certain code sequences involving the __set handler or the null coalescing assignment operator (??=) and exceptions are executed. An attacker who can influence memory layout by supplying crafted inputs to a PHP script may exploit this flaw to achieve remote code execution. Red Hat has released patches for affected PHP packages in Red Hat Enterprise Linux 9 to mitigate this issue.
Potential Impact
The vulnerability allows a remote attacker to potentially execute arbitrary code by exploiting a use-after-free condition in PHP's shutdown sequence. This could lead to full system compromise if exploited successfully. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
A patch is available and should be applied promptly. Red Hat has released updated PHP packages (e.g., php-8.3.19 and php-8.4.5) that fix this vulnerability. Users should update to these or later versions to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2025:7418
- Cve Count
- 6
- Additional Cves
- ["CVE-2025-1217","CVE-2025-1219","CVE-2025-1734","CVE-2025-1736","CVE-2025-1861"]
Threat ID: 6a4049e927e9c79719835d08
Added to database: 06/27/2026, 22:08:41 UTC
Last enriched: 09/08/2026, 15:17:35 UTC
Last updated: 09/10/2026, 19:24:53 UTC
Views: 41
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.