cvelo
P3 · MediumCVSS 6.3EPSS 0.7%

Double free during DOM XML serialization

  • CVE-2026-129501
  • EUVD-2026-130250

Description

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.

Text from the CVE.org record.

Recommendation

  • PHP Group PHP

    • If you run 8.5.xupdate to 8.5.13 or laterPatch update: breaking changes are unlikely
    • If you run 8.4.xupdate to 8.4.28 or laterPatch update: breaking changes are unlikely

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • PHP Group PHP

    Affected versionsFixed in
    from 8.5.0 to before 8.5.138.5.13
    from 8.4.0 to before 8.4.288.4.28

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.