Read the docs

Double free in PHP DOM XML serialization can crash applications

Priority LOW 29CWE-415Published · Updated

Key facts

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

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

PHP versions from 8.4.0 before 8.4.28 and from 8.5.0 before 8.5.13 are affected. The XML serializer of Dom\XMLDocument and Dom\HTMLDocument can share ownership of a generated namespace prefix, so the prefix is used after being freed and then freed again (CWE-415). An unauthenticated remote attacker can crash an application that parses attacker-controlled XML or HTML and serializes it with saveXml(), and repeated requests can cause denial of service. Code execution has not been demonstrated.

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

Description from the CNA

Double free during DOM XML serialization. The XML serializer of Dom\XMLDocument and Dom\HTMLDocument can share ownership of a generated namespace prefix between the namespace-prefix maps of an element and a descendant, so the prefix is used after being freed and then freed a second time. The document does not need to be malformed. An application that parses attacker-controlled XML or HTML with these classes and serializes it with saveXml() can be crashed, and repeated requests can cause denial of service. Code execution has not been demonstrated. This issue affects PHP versions 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.0065 45th percentileScored 2026-11-30
Fix Fixed PHP (PHP Group): 8.4.28, 8.5.13ext-dom (php): 8.4.28, 8.5.13Red Hat: 4 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

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.4.0 to before 8.4.28; 8.5.0 to before 8.5.138.4.28, 8.5.13Patch availableCNA
—ext-dom (php)>= 8.4.0, < 8.4.288.4.28Patch availableGHSA-x8r7-mg3g-74hg
—ext-dom (php)>= 8.5.0, < 8.5.138.5.13Patch availableGHSA-x8r7-mg3g-74hg
  • PHP VendorPHP Group Affected 8.4.0 to before 8.4.28; 8.5.0 to before 8.5.13 Fixed in 8.4.28, 8.5.13 Patch available CNA
  • ext-dom (php) Vendor— Affected >= 8.4.0, < 8.4.28 Fixed in 8.4.28 Patch available GHSA-x8r7-mg3g-74hg
  • ext-dom (php) Vendor— Affected >= 8.5.0, < 8.5.13 Fixed in 8.5.13 Patch available GHSA-x8r7-mg3g-74hg

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.4.28 or 8.5.13. Red Hat fixes it in RHSA-2026:100821 for Red Hat Enterprise Linux AppStream (v. 10), RHSA-2026:101251 for Red Hat Enterprise Linux AppStream EUS (v.10.2), RHSA-2026:102255 for Red Hat Enterprise Linux AppStream (v. 9), and RHSA-2026:101658 for Red Hat Hardened Images.

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

  • Fix · CNA PHP (PHP Group) Fixed in 8.4.28, 8.5.13
  • Fix · GHSA-x8r7-mg3g-74hg ext-dom (php) Fixed in 8.4.28 Advisory →
  • Fix · GHSA-x8r7-mg3g-74hg ext-dom (php) Fixed in 8.5.13 Advisory →

Red Hat 4 advisories

  • 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: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: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
Show 1 more Red Hat advisories
  • 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: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux AppStream (v. 10)Fixed RHSA-2026:100821
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2026:102255
Red Hat Enterprise Linux AppStream EUS (v.10.2)Fixed RHSA-2026:101251
Red Hat Hardened ImagesFixed RHSA-2026:101658
Not affected: 6 products
  • Red Hat Enterprise Linux 10
  • 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-x8r7-mg3g-74hg
  2. 2026-11-19 Alias added: CVE-2026-129501
  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] · CNA
  6. 2026-11-19 1 new reference · CNA
  7. 2026-11-19 CISA SSVC decision points changed
  8. 2026-11-20 Affected versions changed · Red Hat
  9. 2026-11-20 CVSS score added · Red Hat
  10. 2026-11-21 Fix available: RHSA-2026:100821 · Red Hat
  11. 2026-11-21 Fix available: Red Hat Enterprise Linux AppStream (v. 10) · Red Hat
  12. 2026-11-21 Fix available: RHSA-2026:101251 · Red Hat
  13. 2026-11-21 Fix available: Red Hat Enterprise Linux AppStream EUS (v.10.2) · Red Hat
  14. 2026-11-23 Fix available: RHSA-2026:101658 · Red Hat
  15. 2026-11-23 Fix available: Red Hat Hardened Images · Red Hat
  16. 2026-11-24 Fix available: RHSA-2026:102255 · Red Hat
  17. 2026-11-24 Fix available: Red Hat Enterprise Linux AppStream (v. 9) · Red Hat
  18. 2026-11-25 EPSS moved to the below the 50th 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