Vulnerability · Published Apr 4, 2025 · Assigned by php

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

Critical 9.2

In plain English

A critical-severity use-after-free in PHP from PHP Group. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)9.2Critical
Exploit odds (30 days)1.5%top 25.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9apcu-panel5.1.23-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:10php8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-bcmath8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-bcmath8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-cli8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-cli8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-common8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-common8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-dba8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-dba8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-dbg8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-dbg8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-devel8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-devel8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-embedded8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-embedded8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-enchant8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-enchant8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-ffi8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-ffi8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-fpm8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-fpm8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-gd8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-gd8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-gmp8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-gmp8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-intl8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-intl8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-ldap8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-ldap8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-mbstring8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-mbstring8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-mysqlnd8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-mysqlnd8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-odbc8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-odbc8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-opcache8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-opcache8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-pdo8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-pdo8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:9php-pecl-apcu5.1.23-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:9php-pecl-apcu-devel5.1.23-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:9php-pecl-redis66.1.0-2.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:9php-pecl-rrd2.0.3-4.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:9php-pecl-xdebug33.3.1-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:9php-pecl-zip1.22.3-1.module_el9.6.0+151+5f31e576ALSA-2025:7418
AlmaLinux:10php-pgsql8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-pgsql8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-process8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-process8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-snmp8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-snmp8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-soap8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-soap8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
AlmaLinux:10php-xml8.3.19-1.el10_0ALSA-2025:7489
AlmaLinux:9php-xml8.3.19-1.module_el9.6.0+166+f262c21cALSA-2025:7418
Alpine:v3.21php838.3.18-r0ALPINE-CVE-2024-11235
Alpine:v3.22php838.3.18-r0ALPINE-CVE-2024-11235
Alpine:v3.23php838.3.18-r0ALPINE-CVE-2024-11235
Alpine:v3.24php838.3.18-r0ALPINE-CVE-2024-11235
Debian:13php8.48.4.5-1DEBIAN-CVE-2024-11235
Debian:14php8.48.4.5-1DEBIAN-CVE-2024-11235
Rocky Linux:10php0:8.3.19-1.el10_0RLSA-2025:7489
Rocky Linux:9php-pecl-apcu0:5.1.23-1.module+el9.5.0+29598+58484504RLSA-2025:7418
Rocky Linux:9php-pecl-rrd0:2.0.3-4.module+el9.5.0+29598+58484504RLSA-2025:7418
Rocky Linux:9php-pecl-rrd0:2.0.3-4.module+el9.5.0+31393+1f1dedb8RLSA-2025:7418
Rocky Linux:9php-pecl-zip0:1.22.3-1.module+el9.5.0+29598+58484504RLSA-2025:7418
Ubuntu:22.04:LTSphp8.18.1.2-1ubuntu2.21USN-7400-1
Ubuntu:22.04:LTSphp8.18.1.2-1ubuntu2.21UBUNTU-CVE-2024-11235
Ubuntu:24.04:LTSphp8.38.3.6-0ubuntu0.24.04.4USN-7400-1
Ubuntu:24.04:LTSphp8.38.3.6-0ubuntu0.24.04.4UBUNTU-CVE-2024-11235

Affected products (as reported)

VendorProductVersions
PHP Group PHP 8.4.* – before 8.4.58.3.* – before 8.3.19

Weakness: CWE-416 · 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

References