{"id":"UBUNTU-CVE-2025-15646","details":"HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion. Support 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. Any 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-09T17:15:09.394518212Z","published":"2026-07-01T16:16:00Z","upstream":["CVE-2025-15646"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-15646"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-15646"},{"type":"REPORT","url":"https://github.com/ruz/HTML-Gumbo/issues/6"},{"type":"REPORT","url":"https://github.com/bestpractical/html-gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186"}],"affected":[{"package":{"name":"libhtml-gumbo-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libhtml-gumbo-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-gumbo-perl","binary_version":"0.17-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-15646.json"}},{"package":{"name":"libhtml-gumbo-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libhtml-gumbo-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18-2build1","0.18-2build2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.18-2build2","binary_name":"libhtml-gumbo-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-15646.json"}},{"package":{"name":"libhtml-gumbo-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libhtml-gumbo-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18-2build3","0.18-2build4"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-gumbo-perl","binary_version":"0.18-2build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-15646.json"}},{"package":{"name":"libhtml-gumbo-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libhtml-gumbo-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18-3build1","0.18-3build2","0.18-3build3","0.18-3build4","0.18-3build5"],"ecosystem_specific":{"binaries":[{"binary_version":"0.18-3build5","binary_name":"libhtml-gumbo-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-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"},{"type":"Ubuntu","score":"medium"}]}