{"api_version":"1","generated_at":"2026-07-01T23:48:05+00:00","cve":"CVE-2025-15646","urls":{"html":"https://cve.report/CVE-2025-15646","api":"https://cve.report/api/cve/CVE-2025-15646.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-15646","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-15646"},"summary":{"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.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-07-01 16:16:29","updated_at":"2026-07-01 19:16:34"},"problem_types":["CWE-125","CWE-843","CWE-843 CWE-843 Access of Resource Using Incompatible Type (Type Confusion)","CWE-125 CWE-125 Out-of-bounds Read"],"metrics":[{"version":"3.1","source":"ADP","type":"DECLARED","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},{"version":"3.1","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"references":[{"url":"https://bugs.debian.org/1104789","name":"https://bugs.debian.org/1104789","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes","name":"https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2026/07/01/7","name":"http://www.openwall.com/lists/oss-security/2026/07/01/7","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch","name":"https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-15646","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15646","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"BPS","product":"HTML::Gumbo","version":"affected 0.19 custom","platforms":[]}],"timeline":[{"source":"CNA","time":"2015-04-30T00:00:00.000Z","lang":"en","value":"Gumbo 0.10.0 released with support for the <template> element."},{"source":"CNA","time":"2025-05-06T00:00:00.000Z","lang":"en","value":"Reported to the Debian bug tracker (#1104789)."},{"source":"CNA","time":"2025-05-17T00:00:00.000Z","lang":"en","value":"Fix committed upstream."},{"source":"CNA","time":"2026-05-21T00:00:00.000Z","lang":"en","value":"Version 0.19 released with fix."}],"solutions":[{"source":"CNA","title":"","value":"Upgrade to HTML-Gumbo 0.19 or later, which adds GUMBO_NODE_TEMPLATE to the container node types handled by walk_tree.","time":"","lang":"en"}],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Vincent Lefevre","lang":"en"},{"source":"CNA","value":"Niko Tyni","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2026-07-01T17:36:44.275Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/01/7"}],"title":"CVE Program Container"},{"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},{"other":{"content":{"id":"CVE-2025-15646","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-07-01T18:08:40.682429Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-07-01T18:09:08.371Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"HTML-Gumbo","product":"HTML::Gumbo","programFiles":["lib/HTML/Gumbo.xs"],"programRoutines":[{"name":"walk_tree"}],"repo":"https://github.com/bestpractical/HTML-Gumbo","vendor":"BPS","versions":[{"lessThan":"0.19","status":"affected","version":"0","versionType":"custom"}]}],"credits":[{"lang":"en","type":"finder","value":"Vincent Lefevre"},{"lang":"en","type":"remediation developer","value":"Niko Tyni"}],"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."}],"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":{"dateUpdated":"2026-07-01T14:38:03.727Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["patch"],"url":"https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch"},{"tags":["release-notes"],"url":"https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes"},{"tags":["issue-tracking"],"url":"https://bugs.debian.org/1104789"}],"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."}],"title":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion","x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2025-15646","datePublished":"2026-07-01T14:38:03.727Z","dateReserved":"2026-05-22T10:47:01.107Z","dateUpdated":"2026-07-01T18:09:08.371Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-01 16:16:29","lastModifiedDate":"2026-07-01 19:16:34","problem_types":["CWE-125","CWE-843","CWE-843 CWE-843 Access of Resource Using Incompatible Type (Type Confusion)","CWE-125 CWE-125 Out-of-bounds Read"],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-07-01T18:08:40.682429Z","id":"CVE-2025-15646","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"15646","Ordinal":"1","Title":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory v","CVE":"CVE-2025-15646","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"15646","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory v"}]}}}