Read the docs

Use-after-free in PHP session extension after interrupted shutdown

Priority MEDIUM 53CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-416 and the CVSS impact.

Summary

PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13 are affected. The session extension keeps a pointer to the script filename after request memory is freed when a fatal error interrupts session shutdown, and a later request on the same worker can free that stale string (CWE-416). A remote attacker without privileges who can trigger such a failing cleanup may crash the worker or corrupt memory, though code execution has not been demonstrated.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.08638 95th percentileScored 2026-11-30
Fix Fixed PHP (PHP Group): 8.3.37, 8.4.28, 8.5.13ext-session (php): 8.3.37, 8.4.28, 8.5.13Red Hat: 10 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
PHP GroupPHP8.3.0 to before 8.3.37; 8.4.0 to before 8.4.28; 8.5.0 to before 8.5.138.3.37, 8.4.28, 8.5.13Patch availableCNA
—ext-session (php)>= 8.3.0, < 8.3.378.3.37Patch availableGHSA-g3vh-838c-65v7
—ext-session (php)>= 8.4.0, < 8.4.288.4.28Patch availableGHSA-g3vh-838c-65v7
—ext-session (php)>= 8.5.0, < 8.5.138.5.13Patch availableGHSA-g3vh-838c-65v7
  • PHP VendorPHP Group Affected 8.3.0 to before 8.3.37; 8.4.0 to before 8.4.28; 8.5.0 to before 8.5.13 Fixed in 8.3.37, 8.4.28, 8.5.13 Patch available CNA
  • ext-session (php) Vendor— Affected >= 8.3.0, < 8.3.37 Fixed in 8.3.37 Patch available GHSA-g3vh-838c-65v7
  • ext-session (php) Vendor— Affected >= 8.4.0, < 8.4.28 Fixed in 8.4.28 Patch available GHSA-g3vh-838c-65v7
  • ext-session (php) Vendor— Affected >= 8.5.0, < 8.5.13 Fixed in 8.5.13 Patch available GHSA-g3vh-838c-65v7

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*——PHP
  • cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions — — ·PHP

Remediation

Upgrade PHP to 8.3.37, 8.4.28 or 8.5.13 for the matching branch. Red Hat fixes this in RHSA-2026:100821, RHSA-2026:101251, RHSA-2026:101252, RHSA-2026:101658, RHSA-2026:102226, RHSA-2026:102255, RHSA-2026:102300, RHSA-2026:102302, RHSA-2026:102684 and RHSA-2026:102934.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA PHP (PHP Group) Fixed in 8.3.37, 8.4.28, 8.5.13
  • Fix · GHSA-g3vh-838c-65v7 ext-session (php) Fixed in 8.3.37 Advisory →
  • Fix · GHSA-g3vh-838c-65v7 ext-session (php) Fixed in 8.4.28 Advisory →
  • Fix · GHSA-g3vh-838c-65v7 ext-session (php) Fixed in 8.5.13 Advisory →

Red Hat 10 advisories

  • RHSA-2026:102934 Released 2026-11-24 · Red Hat rating Critical
    php security update
    • Red Hat Enterprise Linux AppStream EUS (v. 10.0) php-8.3.37-1.el10_0, php-bcmath-8.3.37-1.el10_0, php-cli-8.3.37-1.el10_0 +22
  • RHSA-2026:102302 Released 2026-11-24 · Red Hat rating Critical
    php security update
    • Red Hat Enterprise Linux AppStream EUS (v.10.2) php-8.3.37-1.el10_2, php-bcmath-8.3.37-1.el10_2, php-cli-8.3.37-1.el10_2 +22
  • RHSA-2026:102684 Released 2026-11-23 · Red Hat rating Critical
    php:8.3 security update
    • Red Hat Enterprise Linux AppStream EUS (v.9.6) apcu-panel-5.1.23-1.module+el9.6.0+22647+1741ae35.noarch::php:8.3, php-8.3.37-1.module+el9.6.0+25401+07615e0b.1.aarch64::php:8.3, php-8.3.37-1.module+el9.6.0+25401+07615e0b.1.ppc64le::php:8.3 +47
Show 7 more Red Hat advisories
  • RHSA-2026:102300 Released 2026-11-23 · Red Hat rating Critical
    php security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream (v. 10) php-8.3.37-1.el10_3, php-bcmath-8.3.37-1.el10_3, php-cli-8.3.37-1.el10_3 +22
  • RHSA-2026:102255 Released 2026-11-23 · Red Hat rating Critical
    php:8.4 security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream (v. 9) apcu-panel-5.1.27-2.module+el9.9.0+24551+b05e3fee.noarch::php:8.4, php-8.4.28-1.module+el9.9.0+25379+ae24289e.aarch64::php:8.4, php-8.4.28-1.module+el9.9.0+25379+ae24289e.ppc64le::php:8.4 +47
  • RHSA-2026:102226 Released 2026-11-23 · Red Hat rating Critical
    php:8.3 security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream (v. 9) apcu-panel-5.1.23-1.module+el9.8.0+24343+756b4fcd.noarch::php:8.3, php-8.3.37-1.module+el9.9.0+25378+b62b08c9.aarch64::php:8.3, php-8.3.37-1.module+el9.9.0+25378+b62b08c9.ppc64le::php:8.3 +47
  • RHSA-2026:101658 Released 2026-11-22 · Red Hat rating Critical
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images php-8.5.13-0.1.hum1@aarch64, php-8.5.13-0.1.hum1@s390x, php-8.5.13-0.1.hum1@src +47
  • RHSA-2026:101252 Released 2026-11-21 · Red Hat rating Critical
    php:8.3 security update
    • Red Hat Enterprise Linux AppStream EUS (v.9.8) apcu-panel-5.1.23-1.module+el9.8.0+24343+756b4fcd.noarch::php:8.3, php-8.3.37-1.module+el9.8.0+25384+2f93d83a.aarch64::php:8.3, php-8.3.37-1.module+el9.8.0+25384+2f93d83a.ppc64le::php:8.3 +47
  • RHSA-2026:101251 Released 2026-11-21 · Red Hat rating Critical
    php8.4 security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream EUS (v.10.2) php8.4-8.4.28-1.el10_2, php8.4-cli-8.4.28-1.el10_2, php8.4-common-8.4.28-1.el10_2 +5
  • RHSA-2026:100821 Released 2026-11-20 · Red Hat rating Critical
    php8.4 security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream (v. 10) php8.4-8.4.28-1.el10_3, php8.4-bcmath-8.4.28-1.el10_3, php8.4-cli-8.4.28-1.el10_3 +22

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux AppStream (v. 10)Fixed RHSA-2026:100821, RHSA-2026:102300
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2026:102226, RHSA-2026:102255
Red Hat Enterprise Linux AppStream EUS (v. 10.0)Fixed RHSA-2026:102934
Red Hat Enterprise Linux AppStream EUS (v.10.2)Fixed RHSA-2026:101251, RHSA-2026:102302
Red Hat Enterprise Linux AppStream EUS (v.9.6)Fixed RHSA-2026:102684
Red Hat Enterprise Linux AppStream EUS (v.9.8)Fixed RHSA-2026:101252
Red Hat Hardened ImagesFixed RHSA-2026:101658
Not affected: 5 products
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux AppStream EUS (v.10.2)

Timeline

  1. 2026-11-19 Threatist record created from GHSA-g3vh-838c-65v7
  2. 2026-11-19 Alias added: CVE-2026-129481
  3. 2026-11-19 CVSS score added · CNA
  4. 2026-11-19 Weakness changed · CNA
  5. 2026-11-19 Fix available: PHP Group/[email protected], PHP Group/[email protected], PHP Group/[email protected] · CNA
  6. 2026-11-19 1 new reference · CNA
  7. 2026-11-19 CISA SSVC decision points changed
  8. 2026-11-19 Affected versions changed · Red Hat
  9. 2026-11-19 CVSS score added · Red Hat
  10. 2026-11-21 EPSS moved to the 50th–90th percentile
  11. 2026-11-21 Fix available: RHSA-2026:100821 · Red Hat
  12. 2026-11-21 Fix available: Red Hat Enterprise Linux AppStream (v. 10) · Red Hat
  13. 2026-11-21 Fix available: RHSA-2026:101251 · Red Hat
  14. 2026-11-21 Fix available: RHSA-2026:101252 · Red Hat
  15. 2026-11-21 Fix available: Red Hat Enterprise Linux AppStream EUS (v.10.2), Red Hat Enterprise Linux AppStream EUS (v.9.8) · Red Hat
  16. 2026-11-23 Fix available: RHSA-2026:101658 · Red Hat
  17. 2026-11-23 Fix available: Red Hat Hardened Images · Red Hat
  18. 2026-11-23 Fix available: RHSA-2026:102226 · Red Hat
  19. 2026-11-23 Fix available: Red Hat Enterprise Linux AppStream (v. 9) · Red Hat
  20. 2026-11-23 Affected versions changed · Red Hat
  21. 2026-11-24 Fix available: Red Hat Enterprise Linux AppStream EUS (v.9.6) · Red Hat
  22. 2026-11-24 Fix available: RHSA-2026:102255 · Red Hat
  23. 2026-11-24 Fix available: RHSA-2026:102300 · Red Hat
  24. 2026-11-24 Fix available: RHSA-2026:102684 · Red Hat
  25. 2026-11-24 Fix available: Red Hat Enterprise Linux AppStream EUS (v. 10.0) · Red Hat
  26. 2026-11-25 EPSS moved to the 90th–95th percentile
  27. 2026-11-25 Fix available: RHSA-2026:102934 · Red Hat
  28. 2026-11-25 Fix available: RHSA-2026:102302 · Red Hat
  29. 2026-11-27 EPSS moved to the 95th–99th percentile

References

  • TI-2024-04260 Argument injection in PHP-CGI on Windows lets attackers pass options KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-78794 Stale global state enables remote code execution in PHP KEVCVSS 4.0CRITICAL 9.2
  • TI-2026-78793 Out-of-memory error handling in PHP allows remote code execution KEVCVSS 4.0CRITICAL 9.2
  • TI-2026-94671 Session serializer mismatch in PHP enables object injection CVSS 4.0CRITICAL 9.2
  • TI-2024-01743 Command injection via array-ish $command parameter of proc_open() CVSS 3.1CRITICAL 9.4
  • TI-2022-13555 PDO::quote() may return unquoted string CVSS 3.1CRITICAL 9.1
See all 124 →

Sources