p PatchFirst

CVE-2026-129501

CVE-2026-129501 · Double free during DOM XML serialization

CVSS 6.3 · Medium · EPSS 0.7% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • phpUpdate to 8.4.28 / 8.5.13
  • php84 Alpine 3.24Update to 8.4.28-r0
  • php85 Alpine 3.24Update to 8.5.13-r0
  • php8.4 Debian 13Update to 8.4.28-1~deb13u1
  • and 3 more

Check the installed version:

apk list -I -o php84
apk list -I -o php85
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="php8.4"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system · php

Affected products and versions

  • php

    Versions
    • ≥ 8.4.0, < 8.4.28: Affected (semver)
    • ≥ 8.5.0, < 8.5.13: Affected (semver)

    Update to 8.4.28; Update to 8.5.13

  • php84 Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 8.4.28-r0

    Update to 8.4.28-r0

  • php85 Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 8.5.13-r0

    Update to 8.5.13-r0

  • php8.4 Debian 13

    Versions
    • 8.4.11-1
    • 8.4.16-1
    • 8.4.16-1~deb13u1
    • 8.4.20-1
    • 8.4.21-1
    • 8.4.21-1~deb13u1
    All versions (15)
    • 8.4.22-1
    • 8.4.23-1
    • 8.4.23-1~deb13u1
    • 8.4.24-1
    • 8.4.24-1~deb13u1
    • 8.4.26-1
    • 8.4.26-1~deb13u1
    • 8.4.27-1
    • 8.4.27-1~deb13u1
    Affected ranges
    • ECOSYSTEM: < 8.4.28-1~deb13u1

    Update to 8.4.28-1~deb13u1

  • php8.4 Debian 14

    Versions
    • 8.4.11-1
    • 8.4.16-1
    • 8.4.16-1~deb13u1
    • 8.4.20-1
    • 8.4.21-1
    • 8.4.21-1~deb13u1
    All versions (16)
    • 8.4.22-1
    • 8.4.23-1
    • 8.4.23-1~deb13u1
    • 8.4.24-1
    • 8.4.24-1~deb13u1
    • 8.4.26-1
    • 8.4.26-1~deb13u1
    • 8.4.27-1
    • 8.4.27-1~deb13u1
    • 8.4.28-1~deb13u1
    Affected ranges
    • ECOSYSTEM: < 8.4.28-2

    Update to 8.4.28-2

  • php8.5 Ubuntu 26.10

    Versions
    • 8.5.4-0ubuntu1
    • 8.5.4-0ubuntu3
    • 8.5.9-0ubuntu1
    • 8.5.9-0ubuntu2
    • 8.5.9-0ubuntu2.1
    Affected ranges
    • ECOSYSTEM: < 8.5.9-0ubuntu2.2

    Update to 8.5.9-0ubuntu2.2

  • php8.5 Ubuntu 26.04 LTS

    Versions
    • 8.5.2-0ubuntu1
    • 8.5.4-0ubuntu1
    • 8.5.4-0ubuntu1.1
    • 8.5.4-0ubuntu1.2
    • 8.5.4-0ubuntu1.3
    • 8.5.4-0ubuntu1.4
    All versions (7)
    • 8.5.4-0ubuntu1.5
    Affected ranges
    • ECOSYSTEM: < 8.5.4-0ubuntu1.6

    Update to 8.5.4-0ubuntu1.6

Original sources

Check your server →