CVE catalog

CVE-2025-15646

HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion. Support for the <template> element was added to libgumbo 0.10.0 in 2015, but the walk_tree function in lib/HTML/Gumb

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.67% · Oct 25, 2026

HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion. Support for the <template> element was added to libgumbo 0.10.0 in 2015, but the walk_tree function in lib/HTML/Gumbo.xs was not updated to support it. The element was treated as a text-node, where strlen() over-reads the heap block that the pointer addresses. Any caller that runs parse() with the default format => 'string', or with format => 'tree', on input containing a <template> element serializes the over-read bytes into the returned result, disclosing bounded heap contents. format => 'callback' reaches a croak on the unhandled node type and is unaffected.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibhtml-gumbo-perlsid0.20-1fixed
Debianlibhtml-gumbo-perlforky0.20-1fixed
Debianlibhtml-gumbo-perltrixie0.18-5fixed
Debianlibhtml-gumbo-perlbookworm0.18-3+deb12u1fixed
Ubuntulibhtml-gumbo-perl18.040.17-1build1vulnerable
Ubuntulibhtml-gumbo-perl20.040.18-2build1vulnerable
Ubuntulibhtml-gumbo-perl20.040.18-2build2vulnerable
Ubuntulibhtml-gumbo-perl22.040.18-2build3vulnerable
Ubuntulibhtml-gumbo-perl22.040.18-2build4vulnerable
Ubuntulibhtml-gumbo-perl24.040.18-3build1vulnerable
Ubuntulibhtml-gumbo-perl24.040.18-3build2vulnerable
Ubuntulibhtml-gumbo-perl24.040.18-3build3vulnerable
Ubuntulibhtml-gumbo-perl24.040.18-3build4vulnerable
Ubuntulibhtml-gumbo-perl24.040.18-3build5vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibhtml-gumbo-perlsourcesid0.18-5not yet assignedNot reported[1104789]
Debianlibhtml-gumbo-perlsourceforky0.18-5not yet assignedNot reported[1104789]
Debianlibhtml-gumbo-perlsourcetrixie0.18-5not yet assignedNot reported[1104789]
Debianlibhtml-gumbo-perlsourcebookworm0.18-3+deb12u1not yet assignedNot reported[1104789]

[Debian bug #1104789]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 0.18-3+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 0.18-3+deb12u1

      nvd · libhtml-gumbo-perl · debian · bookworm; nvd · libhtml-gumbo-perl · debian · 12

    • 0.18-3+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 0.18-3+deb12u1

      nvd · libhtml-gumbo-perl · debian · bookworm; nvd · libhtml-gumbo-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 0.18-5 · amd64 · trixie

      Fixed · Fixed: 0.18-5

      nvd · libhtml-gumbo-perl · debian · 13

    • 0.18-5 · arm64 · trixie

      Fixed · Fixed: 0.18-5

      nvd · libhtml-gumbo-perl · debian · 13

Observed:

References