CVE Vulnerabilities

CVE-2024-11235

Use After Free

Published: Apr 04, 2025 | Modified: Apr 30, 2025
CVSS 3.x
8.1
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.1 IMPORTANT
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Php Php 8.3.0 (including) 8.3.19 (excluding)
Php Php 8.4.0 (including) 8.4.5 (excluding)
Red Hat Enterprise Linux 10 RedHat php-0:8.3.19-1.el10_0 *
Red Hat Enterprise Linux 9 RedHat php:8.3-9060020250409105946.9 *
Php7.4 Ubuntu esm-infra/focal *
Php7.4 Ubuntu focal *
Php8.1 Ubuntu jammy *
Php8.3 Ubuntu noble *
Php8.3 Ubuntu oracular *
Php8.4 Ubuntu devel *
Php8.4 Ubuntu plucky *

Potential Mitigations

References