{"id":"CVE-2025-15646","summary":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion","details":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion.\n\nSupport for the \u003ctemplate\u003e 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 =\u003e 'string', or with format =\u003e 'tree', on input containing a \u003ctemplate\u003e element serializes the over-read bytes into the returned result, disclosing bounded heap contents. format =\u003e 'callback' reaches a croak on the unhandled node type and is unaffected.","modified":"2026-07-08T07:12:24.569428525Z","published":"2026-07-01T14:38:03.727Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15646.json","cna_assigner":"CPANSec","cwe_ids":["CWE-125","CWE-843"]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/07/01/7"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15646.json"},{"type":"ADVISORY","url":"https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15646"},{"type":"REPORT","url":"https://bugs.debian.org/1104789"},{"type":"FIX","url":"https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch"},{"type":"PACKAGE","url":"https://github.com/bestpractical/HTML-Gumbo"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bestpractical/html-gumbo","events":[{"introduced":"0"},{"fixed":"e245984553cdbe3a85f2e250d976c1ff8abad921"},{"fixed":"15c0598909d4a64f47ef0a1abc5051f4e113c186"}],"database_specific":{"source":["DESCRIPTION","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"0.19"}]}}],"versions":["0.18","0.17","0.16","0.12","0.11"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-15646.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}