{"id":"CVE-2026-8829","aliases":["CVE-2026-8829"],"related":[],"kind":"vulnerability","state":"published","title":"HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones de HTML::Entities anteriores a la 3.84 para Perl leían memoria de montón liberada en _decode_entities.\n\nLa rutina XS que respalda HTML::Entities::_decode_entities almacenaba en caché un puntero (repl) hacia el SV de valor de entidad devuelto por hv_fetch en el hash entity2char. Cuando el SV de entrada era idéntico a un SV de valor en ese hash, y ese valor contenía su propia clave como referencia de entidad, una llamada posterior a grow_gap() reasignaba el búfer PV del SV y liberaba la asignación de respaldo a la que repl aún apuntaba. El bucle de copia subsiguiente leía repl_len bytes de la asignación liberada.\n\nLa lectura puede divulgar contenido adyacente del montón en el SV de destino.","source":"nvd"}],"published":"2026-06-04T02:03:46.702Z","modified":"2026-07-22T20:10:00.127Z","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:N/A:N","score":7.5,"rating":"HIGH"},"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:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"3.84","status":"affected"}],"vendor":"OALDERS","product":"HTML::Entities","package":"HTML-Parser","repo":"https://github.com/libwww-perl/HTML-Parser","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.84"}],"vendor":"oalders","product":"html::entities","cpe":"cpe:2.3:a:oalders:html\\:\\:entities:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://github.com/libwww-perl/HTML-Parser/pull/56","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1c.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/04/2","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/06/msg00044.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-04T12:59:04.771Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8829","url":"https://www.cve.org/CVERecord?id=CVE-2026-8829","licence":"CVE Terms of Use","modified":"2026-06-28T11:34:26.121Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8829","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8829","licence":"Public domain","modified":"2026-07-22T20:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:23.679Z","epss":{"score":0.00408,"percentile":0.37157,"date":"2026-12-01T12:00:22.000Z"}}