ALPINE-CVE-2026-129481: Use After Free

Published Nov 19, 2026
·
Updated

Use-after-free after interrupted session shutdown.

The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as streamclose() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache.

This issue affects PHP versions 8.3. before 8.3.37, 8.4. before 8.4.28 and 8.5. before 8.5.13.

Affected Software

3 affected componentsFixes available
alpine/php83<8.3.37-r0
8.3.37-r0
alpine/php84<8.4.28-r0
8.4.28-r0
alpine/php85<8.5.13-r0
8.5.13-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.3.37-r0
  2. Upgrade

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

    Fixed in 8.4.28-r0
  3. Upgrade

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

    Fixed in 8.5.13-r0
  4. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.3.37
  5. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.4.28
  6. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.5.13

Event History

Nov 19, 2026
CVE Published
via OSV·03:17 PM
Data Sourced
via OSV·03:17 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are most exposed to this issue?

Deployments using the affected PHP 8.3, 8.4, or 8.5 versions are exposed when a request can trigger a fatal error during session-variable cleanup and the executing script filename is allocated in request memory. Scripts not cached by OPcache are an example of the required request-memory allocation condition.

2

What does an attacker need to do to exploit it?

An attacker must be able to trigger a failing cleanup during session shutdown, such as a fatal error in an application callback like stream_close() for a user-defined stream wrapper. A later request must then be handled by the same worker, which can free the retained stale pointer.

3

Is code execution confirmed?

No. The available information states that an attacker may crash the worker or corrupt memory, but code execution has not been demonstrated.

4

What versions contain fixes?

The issue affects PHP 8.3 releases before 8.3.37, PHP 8.4 releases before 8.4.28, and PHP 8.5 releases before 8.5.13. Update the applicable Alpine PHP package to a version at or beyond the listed fixed release.

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