VDB

CVE-2024-11235

CVE-2024-11235 PUBLISHED CVSS 9.2 CRITICAL

Reference counting in php_request_shutdown causes Use-After-Free

Reported by php · Published April 4, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.3-cliAmazon Linux8.3.19-1.amzn2023.0.1
php83Alpine8.3.18-r0
php8.3-bcmathAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-odbcAmazon Linux8.3.19-1.amzn2023.0.1
php8.3Amazon Linux8.3.19-1.amzn2023.0.1
php8.3-opcacheAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-ffiAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-zipAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-processAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-snmpAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-intlAmazon Linux8.3.19-1.amzn2023.0.1
php8.3-gdAmazon Linux8.3.19-1.amzn2023.0.1

27 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
9.2
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

Affected products

VendorProductVersions
PHP GroupPHP8.4.*, 8.3.*
PHP GroupPHP8.4.*, 8.3.*

Timeline

  • Mar 13, 2025 CVE Published
  • Mar 14, 2025 PoC Published (7 in total, the first dated here)
  • Apr 5, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 12, 2025 Coalition ESS Score (13 in total, the first dated here)
  • Aug 15, 2026 Security Advisory (12 in total, the first dated here)
  • Oct 23, 2026 Distribution Patch (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-11235
vulnetix vdb fixes CVE-2024-11235

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-11235/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›