{"id":"CVE-2026-8829","state":"PUBLISHED","title":"HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities","description":"HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities.\n\nThe 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.\n\nThe read may disclose adjacent heap contents into the destination SV.","publishedAt":"2026-06-04T02:03:46.702Z","updatedAt":"2026-06-28T11:34:26.121Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["OALDERS HTML::Entities"],"affected":[{"vendor":"OALDERS","product":"HTML::Entities","packageName":"HTML-Parser","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.84","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["util.c"],"programRoutines":[{"name":"HTML::Entities::_decode_entities"}],"repo":"https://github.com/libwww-perl/HTML-Parser"}],"references":["https://github.com/libwww-perl/HTML-Parser/pull/56","https://github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1c.patch","http://www.openwall.com/lists/oss-security/2026/06/04/2","https://lists.debian.org/debian-lts-announce/2026/06/msg00044.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/8xxx/CVE-2026-8829.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-8829","state":"PUBLISHED","datePublished":"2026-06-04T02:03:46.702Z","dateUpdated":"2026-06-28T11:34:26.121Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-05-18T13:24:05.252Z"},"containers":{"cna":{"title":"HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities","descriptions":[{"lang":"en","value":"HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities.\n\nThe 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.\n\nThe read may disclose adjacent heap contents into the destination SV."}],"affected":[{"vendor":"OALDERS","product":"HTML::Entities","packageName":"HTML-Parser","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.84","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["util.c"],"programRoutines":[{"name":"HTML::Entities::_decode_entities"}],"repo":"https://github.com/libwww-perl/HTML-Parser"}],"references":[{"url":"https://github.com/libwww-perl/HTML-Parser/pull/56","tags":["patch"]},{"url":"https://github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1c.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","description":"CWE-416 Use After Free","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-06-04T02:03:46.702Z"},"solutions":[{"lang":"en","value":"Upgrade to HTML-Parser 3.84 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-05-12T00:00:00.000Z","value":"Issue reported."},{"lang":"en","time":"2026-05-19T00:00:00.000Z","value":"HTML-Parser 3.84 released."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/06/04/2"},{"url":"https://lists.debian.org/debian-lts-announce/2026/06/msg00044.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-06-28T11:34:26.121Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-06-04T12:59:04.771815Z","id":"CVE-2026-8829","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-04T12:59:07.698Z"}}]}}}