CVE-2024-11235 Details
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.
A use-after-free vulnerability has been identified in PHP versions 8.3.* prior to 8.3.19 and 8.4.* prior to 8.4.5. This vulnerability arises from a code sequence involving the __set handler, the null coalescing assignment operator (??=), and exception handling. When an exception is thrown, the exception handler frees variables, but the reference counting mechanism in PHP can then access this freed memory. If a third party can manipulate the memory layout—potentially by sending specially crafted inputs—it could lead to remote code execution.
Users can upgrade to PHP versions 8.3.19 or 8.4.5 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-rwp7-7vc6-8477 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/php/php-src/security/advisories/GHSA-rwp7-7vc6-8477 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | >= 8.3.0, < 8.3.19 >= 8.4.0, < 8.4.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 30, 2025 | Initial Analysis | [email protected] |
| Apr 4, 2025 | CVE Modified | CISA-ADP |
| Apr 4, 2025 | New CVE Received | [email protected] |