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.
Analysis and contextual insights are available on OpenCVE Cloud.
Vendor Solution
Upgrade to HTML-Parser 3.84 or later.
Tracking
Sign in to view the affected projects.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-4655-1 | libhtml-parser-perl security update |
Mon, 08 Jun 2026 16:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Oalders html\
|
|
| CPEs | cpe:2.3:a:oalders:html\:\:entities:*:*:*:*:*:perl:*:* | |
| Vendors & Products |
Oalders html\
|
Fri, 05 Jun 2026 10:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Oalders
Oalders html::entities |
|
| Vendors & Products |
Oalders
Oalders html::entities |
Thu, 04 Jun 2026 13:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
Thu, 04 Jun 2026 07:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Thu, 04 Jun 2026 02:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities | |
| Weaknesses | CWE-416 | |
| References |
|
Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2026-06-28T11:34:26.121Z
Reserved: 2026-05-18T13:24:05.252Z
Link: CVE-2026-8829
Updated: 2026-06-28T11:34:26.121Z
Status : Analyzed
Published: 2026-06-04T03:16:20.260
Modified: 2026-06-08T16:29:43.980
Link: CVE-2026-8829
No data.
OpenCVE Enrichment
Updated: 2026-06-05T10:09:22Z
Debian DLA