Skip to main content
EPSS 1.5%top 28%

Reference counting in php_request_shutdown causes Use-After-Free (CVE-2024-11235)

0
Critical
Published: 04/14/2025 (04/14/2025, 11:38:04 UTC)
Source: GCVE Database
Product: php

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

Affected versions
>=8.3 <8.3.19>=8.3.0 <8.3.19>=8.4.0 <8.4.5

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:17:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses