CVEfocus › CVE database › CVE-2026-8829

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

CVSS 7.5 HighEPSS 0.5% (higher than 36% of CVEs)Published 2026-06-04Updated 2026-06-28Assigner: CPANSec

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.

CWE-416

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
4Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libhtml-parser-perlFixed3.83-1ubuntu0.1UBUNTU-CVE-2026-8829
Ubuntu 25.10libhtml-parser-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-8829
Ubuntu 24.04libhtml-parser-perlFixed3.81-1ubuntu0.1UBUNTU-CVE-2026-8829
Ubuntu 22.04libhtml-parser-perlFixed3.76-1ubuntu0.1UBUNTU-CVE-2026-8829
Ubuntu 20.04libhtml-parser-perlFix pendingUBUNTU-CVE-2026-8829
Ubuntu 18.04libhtml-parser-perlFix pendingUBUNTU-CVE-2026-8829
Ubuntu 16.04libhtml-parser-perlFix pendingUBUNTU-CVE-2026-8829
Ubuntu 14.04libhtml-parser-perlFix pendingUBUNTU-CVE-2026-8829
Debian 14libhtml-parser-perlFixed3.83-2DEBIAN-CVE-2026-8829
Debian 13libhtml-parser-perlFixed3.83-2~deb13u1DEBIAN-CVE-2026-8829
Debian 12libhtml-parser-perlFixed3.81-1+deb12u1DEBIAN-CVE-2026-8829

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to HTML-Parser 3.84 or later.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.