Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
CVE-2026-129481: PHP may crash during interrupted session shutdown
CVE-2026-129481 · published 17 days ago
Summary
PHP versions 8.3 up to 8.3.36, 8.4 up to 8.4.27, and 8.5 up to 8.5.12 can experience a crash if a session ends unexpectedly while cleaning up. This can cause the web server process to stop working, though it does not allow attackers to run code. Update PHP to the latest patched release for each affected branch to prevent the problem.
What to do
- Update debian php8.4 to version 8.4.28-1~deb13u1.
- Update php83 to version 8.3.37-r0.
- Update php84 to version 8.4.28-r0.
- Update php85 to version 8.5.13-r0.
- Update bellsoft php83 to version 8.3.37-r0.
- Update debian php8.4 to version 8.4.28-2.
- Update canonical php5 to version 5.5.9+dfsg-1ubuntu4.29+esm19.
- Update canonical php7.0 to version 7.0.33-0ubuntu0.16.04.16+esm23.
- Update canonical php7.2 to version 7.2.24-0ubuntu0.18.04.17+esm15.
- Update canonical php7.4 to version 7.4.3-4ubuntu2.29+esm6.
- Update canonical php8.1 to version 8.1.2-1ubuntu2.29.
- Update canonical php8.3 to version 8.3.6-0ubuntu0.24.04.14.
- Update canonical php8.5 to version 8.5.9-0ubuntu2.2.
- Update canonical php8.5 to version 8.5.4-0ubuntu1.6.
- Update libphp to version 8.5.13.
- Update php to version 8.5.13.
- Update php-min to version 8.5.13.
- Update php group php to version 8.3.37 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | php group | php | < 8.3.37 |
| Debian:12 | debian | php8.2 | All versions |
| Debian:13 | debian | php8.4 |
< 8.4.28-1~deb13u1 Fix: upgrade to 8.4.28-1~deb13u1
|
| Debian:14 | debian | php8.4 |
< 8.4.28-2 Fix: upgrade to 8.4.28-2
|
| Alpine:v3.24 | – | php83 |
< 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Alpine:v3.24 | – | php84 |
< 8.4.28-r0 Fix: upgrade to 8.4.28-r0
|
| Alpine:v3.24 | – | php85 |
< 8.5.13-r0 Fix: upgrade to 8.5.13-r0
|
| Alpaquita:stream | bellsoft | php83 |
>= 8.3.4-r2, < 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Ubuntu:Pro:14.04:LTS | canonical | php5 |
< 5.5.9+dfsg-1ubuntu4.29+esm19 Fix: upgrade to 5.5.9+dfsg-1ubuntu4.29+esm19
|
| Ubuntu:Pro:16.04:LTS | canonical | php7.0 |
< 7.0.33-0ubuntu0.16.04.16+esm23 Fix: upgrade to 7.0.33-0ubuntu0.16.04.16+esm23
|
| Ubuntu:Pro:18.04:LTS | canonical | php7.2 |
< 7.2.24-0ubuntu0.18.04.17+esm15 Fix: upgrade to 7.2.24-0ubuntu0.18.04.17+esm15
|
| Ubuntu:Pro:20.04:LTS | canonical | php7.4 |
< 7.4.3-4ubuntu2.29+esm6 Fix: upgrade to 7.4.3-4ubuntu2.29+esm6
|
| Ubuntu:22.04:LTS | canonical | php8.1 |
< 8.1.2-1ubuntu2.29 Fix: upgrade to 8.1.2-1ubuntu2.29
|
| Ubuntu:24.04:LTS | canonical | php8.3 |
< 8.3.6-0ubuntu0.24.04.14 Fix: upgrade to 8.3.6-0ubuntu0.24.04.14
|
| Ubuntu:26.10 | canonical | php8.5 |
< 8.5.9-0ubuntu2.2 Fix: upgrade to 8.5.9-0ubuntu2.2
|
| Ubuntu:26.04:LTS | canonical | php8.5 |
< 8.5.4-0ubuntu1.6 Fix: upgrade to 8.5.4-0ubuntu1.6
|
| Bitnami | – | libphp |
>= 8.5.0, < 8.5.13 Fix: upgrade to 8.5.13
|
| Bitnami | – | php |
>= 8.5.0, < 8.5.13 Fix: upgrade to 8.5.13
|
| Bitnami | – | php-min |
>= 8.5.0, < 8.5.13 Fix: upgrade to 8.5.13
|
Original advisory text
Use-after-free after interrupted session shutdown
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 stream_close() 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.
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 stream_close() 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.
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-1294... Vendor Advisory
- https://github.com/php/php-src/security/advisories/GHSA-g3vh-838c-65v7 Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-129481 Vendor Advisory
- https://docs.bell-sw.com/security/cves/CVE-2026-129481 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-129481 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-129481 Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-129481 Vendor Advisory
- https://security.alpinelinux.org/vuln/CVE-2026-129481 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
9.4
Critical
Type
CWE-416Use After Free
CWE-459Incomplete Cleanup
Timeline
Published19 Nov 2026
Updated3 Dec 2026
First seen19 Nov 2026
Sources
CVE-2026-129481 · NVD
CVE-2026-129481 · MITRE
DEBIAN-CVE-2026-129481 · OSV
BELL-CVE-2026-129481 · OSV
UBUNTU-CVE-2026-129481 · OSV
CVE-2026-129481 · OSV
GHSA-g3vh-838c-65v7 · GHSA
BIT-php-min-2026-129481 · OSV
ALPINE-CVE-2026-129481 · OSV
Track software like this
Free during beta