Skip to content
OpenAdvisories
High · 7.5 CVE-2026-8829 EUVD-2026-34194GHSA-9p7j-9995-m88w

HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities

Published Jun 4, 2026 · Updated Jun 28, 2026 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
OALDERS HTML::Entities < 3.84 3.84

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libhtml-parser-perl 3.83-2 —
Debian 13 libhtml-parser-perl 3.83-2~deb13u1 —
Debian 12 libhtml-parser-perl 3.81-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libhtml-parser-perl 3.83-1ubuntu0.1 USN-8587-1
Ubuntu 25.10 libhtml-parser-perl No fix yet —
Ubuntu 24.04 LTS libhtml-parser-perl 3.81-1ubuntu0.1 USN-8587-1
Ubuntu 22.04 LTS libhtml-parser-perl 3.76-1ubuntu0.1 USN-8587-1
Ubuntu 20.04 LTS libhtml-parser-perl No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS libhtml-parser-perl No fix yet —
Ubuntu 16.04 LTS libhtml-parser-perl No fix yet —
Ubuntu 14.04 LTS libhtml-parser-perl No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 perl-HTML-Parser 3.830.0-150000.3.6.1 SUSE-SU-2026:2950-1
SLES 12 SP5 perl-HTML-Parser 3.71-3.3.1 SUSE-SU-2026:2948-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 perl-HTML-Parser 3.830.0-160000.3.1 SUSE-SU-2026:22189-1
SLES 16.0 perl-HTML-Parser 3.830.0-160000.3.1 SUSE-SU-2026:22189-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-HTML-Parser 3.850.0-1.1 openSUSE-SU-2026:10957-1
openSUSE Leap 16.0 perl-HTML-Parser 3.830.0-160000.3.1 openSUSE-SU-2026:21126-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 perl-HTML-Parser +1 3.76-1.amzn2023.0.4 ALAS2023-2026-1836
Amazon Linux 2 perl-HTML-Parser 3.71-4.amzn2.0.3 ALAS2-2026-3357

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 perl-HTML-Parser 3.82-2 —

Advisories 10

References