{"id":"CVE-2025-15646","state":"PUBLISHED","title":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion","description":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion.\n\nSupport 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.\n\nAny 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.","publishedAt":"2026-07-01T14:38:03.727Z","updatedAt":"2026-07-01T18:09:08.371Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["BPS HTML::Gumbo"],"affected":[{"vendor":"BPS","product":"HTML::Gumbo","packageName":"HTML-Gumbo","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.19","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/HTML/Gumbo.xs"],"programRoutines":[{"name":"walk_tree"}],"repo":"https://github.com/bestpractical/HTML-Gumbo"}],"references":["https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch","https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes","https://bugs.debian.org/1104789","http://www.openwall.com/lists/oss-security/2026/07/01/7"],"weaknesses":["CWE-843","CWE-125"],"ingestedAt":"2026-10-29T20:08:31.050Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/15xxx/CVE-2025-15646.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-15646","state":"PUBLISHED","datePublished":"2026-07-01T14:38:03.727Z","dateUpdated":"2026-07-01T18:09:08.371Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-05-22T10:47:01.107Z"},"containers":{"cna":{"title":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion","descriptions":[{"lang":"en","value":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion.\n\nSupport 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.\n\nAny 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."}],"affected":[{"vendor":"BPS","product":"HTML::Gumbo","packageName":"HTML-Gumbo","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.19","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/HTML/Gumbo.xs"],"programRoutines":[{"name":"walk_tree"}],"repo":"https://github.com/bestpractical/HTML-Gumbo"}],"references":[{"url":"https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch","tags":["patch"]},{"url":"https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes","tags":["release-notes"]},{"url":"https://bugs.debian.org/1104789","tags":["issue-tracking"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-843","description":"CWE-843 Access of Resource Using Incompatible Type (Type Confusion)","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-01T14:38:03.727Z"},"credits":[{"lang":"en","type":"finder","value":"Vincent Lefevre"},{"lang":"en","type":"remediation developer","value":"Niko Tyni"}],"solutions":[{"lang":"en","value":"Upgrade to HTML-Gumbo 0.19 or later, which adds GUMBO_NODE_TEMPLATE to the container node types handled by walk_tree."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2015-04-30T00:00:00.000Z","value":"Gumbo 0.10.0 released with support for the <template> element."},{"lang":"en","time":"2025-05-06T00:00:00.000Z","value":"Reported to the Debian bug tracker (#1104789)."},{"lang":"en","time":"2025-05-17T00:00:00.000Z","value":"Fix committed upstream."},{"lang":"en","time":"2026-05-21T00:00:00.000Z","value":"Version 0.19 released with fix."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/01/7"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-01T17:36:44.275Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-01T18:08:40.682429Z","id":"CVE-2025-15646","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-01T18:09:08.371Z"}}]}}}