# CVE-2025-15646: HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-07-01T14:38:03.727Z
- Modified: 2026-10-06T22:10:00.247Z
- Weaknesses: CWE-125, CWE-843
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## Description

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.

(As written by CVE List.)

## Affected

- HTML-Gumbo: before 0.19

## References

- <https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch> (patch)
- <https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes> (release-notes)
- <https://bugs.debian.org/1104789> (issue-tracking)
- <http://www.openwall.com/lists/oss-security/2026/07/01/7>

## Sources

- CVE List: [CVE-2025-15646](https://www.cve.org/CVERecord?id=CVE-2025-15646), CVE Terms of Use, modified 2026-07-01
- NVD: [CVE-2025-15646](https://nvd.nist.gov/vuln/detail/CVE-2025-15646), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2025-15646 · Whole record: https://cve.day/CVE-2025-15646.json · Rebuilt by cve.day 2026-11-25T22:59:12.369Z
