cve.bz

CVE-2024-11235 php php: Use After Free

9.2 criticalExploit referenceEPSS 1.5%

Critical (9.2) in php php. EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.2 critical
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

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-11235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-11235?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-11235?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-11235 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHP Group PHPfrom 8.4.* before 8.4.5
PHP Group PHPfrom 8.3.* before 8.3.19

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14php8.48.4.5-1DEBIAN-CVE-2024-11235
Ubuntu20.04:LTSphp7.47.4.3-4ubuntu2.29UBUNTU-CVE-2024-11235 USN-7400-1
Ubuntu22.04:LTSphp8.18.1.2-1ubuntu2.21UBUNTU-CVE-2024-11235 USN-7400-1
Ubuntu24.04:LTSphp8.38.3.6-0ubuntu0.24.04.4UBUNTU-CVE-2024-11235 USN-7400-1
UbuntuPro:14.04:LTSphp5no fix listedUBUNTU-CVE-2024-11235
UbuntuPro:18.04:LTSphp7.2no fix listedUBUNTU-CVE-2024-11235
Red Hatenterprise_linux:9::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.23-1.module+el9.6.0+22647+1741ae35RHSA-2025:7418
Red Hatenterprise_linux:9::appstreamphp, php-gd, php-cli and 47 more0:8.3.19-1.module+el9.6.0+23015+da8065b7RHSA-2025:7418
Red Hatenterprise_linux:9::appstreamphp-pecl-redis6, php-pecl-redis6-debuginfo, php-pecl-redis6-debugsource0:6.1.0-2.module+el9.6.0+22647+1741ae35RHSA-2025:7418
Red Hatenterprise_linux:9::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.3-4.module+el9.6.0+22647+1741ae35RHSA-2025:7418
Red Hatenterprise_linux:9::appstreamphp-pecl-xdebug3, php-pecl-xdebug3-debuginfo, php-pecl-xdebug3-debugsource0:3.3.1-1.module+el9.6.0+22647+1741ae35RHSA-2025:7418
Red Hatenterprise_linux:9::appstreamphp-pecl-zip, php-pecl-zip-debuginfo, php-pecl-zip-debugsource0:1.22.3-1.module+el9.6.0+22647+1741ae35RHSA-2025:7418
Red Hatenterprise_linux:10.0php, php-gd, php-cli and 47 more0:8.3.19-1.el10_0RHSA-2025:7489
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morephp77.4.33-150200.3.76.1SUSE-SU-2025:1026-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 6 morephp8, php8-fpm, php8-test and 3 more8.0.30-150400.4.54.1SUSE-SU-2025:0994-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Legacy 15 SP6 and 4 morephp7, php7-fpm, php7-fastcgi and 1 more7.4.33-150400.4.48.1SUSE-SU-2025:1025-1
SUSELinux Enterprise Module for Package Hub 15 SP6php7-embed7.4.33-150400.4.48.1SUSE-SU-2025:1025-1
SUSELinux Enterprise Module for Web and Scripting 15 SP6php8, php8-fpm, php8-test and 3 more8.2.28-150600.3.16.1SUSE-SU-2025:1012-1
openSUSELeap 15.6php7, php7-fpm, php7-test and 3 more7.4.33-150400.4.48.1SUSE-SU-2025:1025-1
openSUSELeap 15.6php8, php8-fpm, php8-test and 3 more8.2.28-150600.3.16.1SUSE-SU-2025:1012-1
openSUSETumbleweedphp88.3.19-1.1openSUSE-SU-2025:14895-1
AlmaLinux9apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.23-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux9php, php-gd, php-cli and 22 more8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux9php-pecl-redis66.1.0-2.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux9php-pecl-rrd2.0.3-4.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux9php-pecl-xdebug33.3.1-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux9php-pecl-zip1.22.3-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux10php, php-gd, php-cli and 22 more8.3.19-1.el10_0ALSA-2025:7489
Rocky Linux9php-pecl-apcu0:5.1.23-1.module+el9.5.0+29598+58484504RLSA-2025:7418
Rocky Linux9php-pecl-rrd0:2.0.3-4.module+el9.5.0+29598+58484504RLSA-2025:7418
Rocky Linux9php-pecl-rrd0:2.0.3-4.module+el9.5.0+31393+1f1dedb8RLSA-2025:7418
Rocky Linux9php-pecl-zip0:1.22.3-1.module+el9.5.0+29598+58484504RLSA-2025:7418
Rocky Linux10php0:8.3.19-1.el10_0RLSA-2025:7489
Alpinev3.21, v3.22, v3.23 and 1 morephp838.3.18-r0ALPINE-CVE-2024-11235
Alpaquitastreamphp838.3.18-r0BELL-CVE-2024-11235

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability marked as Important instead of Moderate because it leads to a use-after-free condition, allowing attackers to exploit PHP’s memory management for remote code execution. Unlike moderate flaws that might cause limited disruption, this issue arises from a dangerous interaction between the `__set` method or the `??=` operator and exceptions, leading to freed memory being accessed unpredictably. If an attacker can control the memory layout through crafted inputs, they can hijack execution flow, making this a severe risk in real-world PHP applications.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10php-0:8.3.19-1.el10_0Fixed 2025-05-13RHSA-2025:7489
Red Hat Enterprise Linux 9php:8.3-9060020250409105946.9Fixed 2025-05-13RHSA-2025:7418
Red Hat Enterprise Linux 6phpOut of support scope
Red Hat Enterprise Linux 7phpOut of support scope
Red Hat Enterprise Linux 8php:7.4/phpNot affected
Red Hat Enterprise Linux 8php:8.2/phpNot affected
Red Hat Enterprise Linux 9phpNot affected
Red Hat Enterprise Linux 9php:8.1/phpNot affected
Red Hat Enterprise Linux 9php:8.2/phpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-11235.

References

Check your stackJSON