CVE-2025-15646
published critical CVSS 3.1 · 9.8HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| BPS | — | HTML-GumboHTML::Gumbo · 0 to < 0.19 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| BPS | HTML::Gumbo | 0 to < 0.19 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-843 CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
- CWE-125 CWE-125 Out-of-bounds Read
References
4Provider assertions
3CPANSec · cna
HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6a39b17ea3929acbdec2792f641cdf43cfb74fb13f63994e720aaa643b10a977
- Ingested
- 23 Sep 2026, 08:38:18 UTC
- Source record
- Official CVE record