{"id":"CVE-2025-15646","aliases":["CVE-2025-15646"],"related":[],"kind":"vulnerability","state":"published","title":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones de HTML::Gumbo anteriores a la 0.19 para Perl revelan memoria del heap a través de confusión de tipos.\n\nEl soporte para el elemento <template> se añadió a libgumbo 0.10.0 en 2015, pero la función walk_tree en lib/HTML/Gumbo.xs no se actualizó para soportarlo. El elemento fue tratado como un nodo de texto, donde strlen() lee más allá del bloque del heap al que apunta el puntero.\n\nCualquier llamador que ejecute parse() con el formato predeterminado => 'string', o con formato => 'tree', en una entrada que contenga un elemento <template> serializa los bytes leídos en exceso en el resultado devuelto, revelando contenidos acotados del heap. formato => 'callback' alcanza un croak en el tipo de nodo no manejado y no se ve afectado.","source":"nvd"}],"published":"2026-07-01T14:38:03.727Z","modified":"2026-10-06T22:10:00.247Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-125","CWE-843"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.19","status":"affected"}],"vendor":"BPS","product":"HTML::Gumbo","package":"HTML-Gumbo","repo":"https://github.com/bestpractical/HTML-Gumbo","source":"cvelist"}],"references":[{"url":"https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://bugs.debian.org/1104789","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/01/7","tags":[],"sources":["cvelist","nvd"]}],"credits":["Vincent Lefevre","Niko Tyni"],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-07-01T18:08:40.682Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-15646","url":"https://www.cve.org/CVERecord?id=CVE-2025-15646","licence":"CVE Terms of Use","modified":"2026-07-01T18:09:08.371Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-15646","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15646","licence":"Public domain","modified":"2026-10-06T22:10:00.247Z"}],"updatedAt":"2026-11-25T22:59:12.369Z","epss":{"score":0.00512,"percentile":0.45161,"date":"2026-12-01T12:00:22.000Z"}}