{"id":"UBUNTU-CVE-2026-8829","details":"HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities. The XS routine backing HTML::Entities::_decode_entities cached a pointer (repl) into the entity-value SV returned by hv_fetch on the entity2char hash. When the input SV was identical to a value SV in that hash, and that value contained its own key as an entity reference, a later call to grow_gap() reallocated the SV's PV buffer and freed the backing allocation that repl still pointed into. The subsequent copy loop read repl_len bytes from the freed allocation. The read may disclose adjacent heap contents into the destination SV.","modified":"2026-07-22T20:46:45.831159008Z","published":"2026-06-04T03:16:00Z","related":["USN-8587-1"],"upstream":["CVE-2026-8829"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-8829"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-8829"},{"type":"REPORT","url":"https://github.com/libwww-perl/HTML-Parser/pull/56"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8587-1"}],"affected":[{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.71-1","3.71-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.71-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.71-2","3.71-2build1","3.72-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.72-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.72-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.72-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.72-3build2","3.72-3build3","3.72-5"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.72-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.76-1ubuntu0.1"}]}],"versions":["3.76-1","3.76-1build1","3.76-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.76-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.81-1ubuntu0.1"}]}],"versions":["3.81-1","3.81-1build1","3.81-1build2","3.81-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.81-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.83-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.83-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.json"}},{"package":{"name":"libhtml-parser-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libhtml-parser-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.83-1ubuntu0.1"}]}],"versions":["3.83-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libhtml-parser-perl","binary_version":"3.83-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8829.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:N/A:N"},{"type":"Ubuntu","score":"medium"}]}