Skip to content

CVE-2026-8829 HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities

HighCVSS 7.5 EPSS 0.41%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 8 fixed.

PackageAffectedFixed inStatus
azure linux perl-HTML-Parser(Azure Linux 3.0) < 3.82-2 3.82-2 Fixed
debian/libhtml-parser-perl(Debian 12) < 3.81-1+deb12u1; = 3.81-1 3.81-1+deb12u1 Fixed
debian/libhtml-parser-perl(Debian 13) < 3.83-2~deb13u1; = 3.83-1 3.83-2~deb13u1 Fixed
debian/libhtml-parser-perl(Debian 14) < 3.83-2; = 3.83-1; = 3.83-2~deb13u1 3.83-2 Fixed
OALDERS HTML::Entities < 3.84 3.84 Fixed
ubuntu/libhtml-parser-perl(Ubuntu 22.04) < 3.76-1ubuntu0.1 3.76-1ubuntu0.1 Fixed
ubuntu/libhtml-parser-perl(Ubuntu 24.04) < 3.81-1ubuntu0.1 3.81-1ubuntu0.1 Fixed
ubuntu/libhtml-parser-perl(Ubuntu 26.04) < 3.83-1ubuntu0.1 3.83-1ubuntu0.1 Fixed

Affected products

ProductAffected versionsFixed in
OALDERS HTML::Entities < 3.84 3.84
debian/libhtml-parser-perl(Debian:12) < 3.81-1+deb12u1 3.81-1+deb12u1
debian/libhtml-parser-perl(Debian:12) = 3.81-1 No fix listed
debian/libhtml-parser-perl(Debian:13) < 3.83-2~deb13u1 3.83-2~deb13u1
debian/libhtml-parser-perl(Debian:13) = 3.83-1 No fix listed
debian/libhtml-parser-perl(Debian:14) < 3.83-2 3.83-2
debian/libhtml-parser-perl(Debian:14) = 3.83-1 No fix listed
debian/libhtml-parser-perl(Debian:14) = 3.83-2~deb13u1 No fix listed
ubuntu/libhtml-parser-perl(Ubuntu:22.04) < 3.76-1ubuntu0.1 3.76-1ubuntu0.1
ubuntu/libhtml-parser-perl(Ubuntu:24.04) < 3.81-1ubuntu0.1 3.81-1ubuntu0.1
ubuntu/libhtml-parser-perl(Ubuntu:26.04) < 3.83-1ubuntu0.1 3.83-1ubuntu0.1
azure linux perl-HTML-Parser(Azure Linux:3.0) < 3.82-2 3.82-2

References