CVE-2026-8829 Details
Description
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.
A heap-use-after-free vulnerability has been identified in HTML::Entities versions prior to 3.84 for Perl. The issue arises in the _decode_entities function, where a pointer to an entity value can be cached and later read from a freed memory allocation. This vulnerability can potentially disclose adjacent heap contents.
Users can upgrade to HTML::Entities version 3.84 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1c.patch | CPANSec | Patch |
| https://github.com/libwww-perl/HTML-Parser/pull/56 | CPANSec | Issue TrackingPatch |
| https://lists.debian.org/debian-lts-announce/2026/06/msg00044.html | CVE | |
| http://www.openwall.com/lists/oss-security/2026/06/04/2 | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| oalders html::entities | < 3.84 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 28, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 8, 2026 | Initial Analysis | [email protected] |
| Jun 4, 2026 | CVE Modified | CISA-ADP |
| Jun 4, 2026 | CVE Modified | CVE |
| Jun 4, 2026 | New CVE Received | CPANSec |