CVE-2026-8829
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
04/06/2026
Last modified:
28/06/2026
Description
HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities.<br />
<br />
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&#39;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.<br />
<br />
The read may disclose adjacent heap contents into the destination SV.
Impact
Base Score 3.x
7.50
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:oalders:html\:\:entities:*:*:*:*:*:perl:*:* | 3.84 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



