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

Published Mar 13, 2025
·
Updated

Fixed (Reference counting in phprequestshutdown causes Use-After-Free). (CVE-2024-11235)

Other sources

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.

— Red Hat

Affected Software

10 affected componentsFixes available
PHP PHP<8.4.5
8.4.5
PHP PHP>=8.3.0<8.3.19
PHP PHP>=8.4.0<8.4.5
debian/php8.4<8.4.5-1
8.4.5-1
debian/php8.4<8.4.5-1
8.4.5-1
debian/php8.4
8.4.24-1~deb13u18.4.27-1~deb13u18.4.27-1
alpine/php83<8.3.18-r0
8.3.18-r0
alpine/php83<8.3.18-r0
8.3.18-r0
alpine/php83<8.3.18-r0
8.3.18-r0
alpine/php83<8.3.18-r0
8.3.18-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.4.5
  2. Upgrade

    Upgrade debian/php8.4 to a version that resolves this vulnerability.

    Fixed in 8.4.5-1
  3. Upgrade

    Upgrade debian/php8.4 to a version that resolves this vulnerability.

    Fixed in 8.4.24-1~deb13u1Fixed in 8.4.27-1~deb13u1Fixed in 8.4.27-1
  4. Upgrade

    Upgrade alpine/php83 to a version that resolves this vulnerability.

    Fixed in 8.3.18-r0
  5. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.3.19

Event History

Mar 13, 2025
CVE Published
via PHP·12:00 AM
Apr 4, 2025
CVE Published
via MITRE·05:51 PM
Data Sourced
via MITRE·05:51 PM
DescriptionWeakness
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-11235?

CVE-2024-11235 has been classified as a critical vulnerability due to its potential for causing use-after-free errors.

2

How do I fix CVE-2024-11235?

To fix CVE-2024-11235, upgrade PHP to version 8.3.19 or later.

3

What causes the vulnerability CVE-2024-11235?

The vulnerability CVE-2024-11235 is caused by improper reference counting during the php_request_shutdown process.

4

Which versions of PHP are affected by CVE-2024-11235?

CVE-2024-11235 affects all PHP versions prior to 8.3.19.

5

Is there a workaround for CVE-2024-11235?

There is no known workaround for CVE-2024-11235; upgrading to a fixed version is the only solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203