CVE-2026-8829HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libhtml-parser-perl | Fixed | 3.83-1ubuntu0.1 | UBUNTU-CVE-2026-8829 |
| Ubuntu 25.10 | libhtml-parser-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-8829 | |
| Ubuntu 24.04 | libhtml-parser-perl | Fixed | 3.81-1ubuntu0.1 | UBUNTU-CVE-2026-8829 |
| Ubuntu 22.04 | libhtml-parser-perl | Fixed | 3.76-1ubuntu0.1 | UBUNTU-CVE-2026-8829 |
| Ubuntu 20.04 | libhtml-parser-perl | Fix pending | UBUNTU-CVE-2026-8829 | |
| Ubuntu 18.04 | libhtml-parser-perl | Fix pending | UBUNTU-CVE-2026-8829 | |
| Ubuntu 16.04 | libhtml-parser-perl | Fix pending | UBUNTU-CVE-2026-8829 | |
| Ubuntu 14.04 | libhtml-parser-perl | Fix pending | UBUNTU-CVE-2026-8829 | |
| Debian 14 | libhtml-parser-perl | Fixed | 3.83-2 | DEBIAN-CVE-2026-8829 |
| Debian 13 | libhtml-parser-perl | Fixed | 3.83-2~deb13u1 | DEBIAN-CVE-2026-8829 |
| Debian 12 | libhtml-parser-perl | Fixed | 3.81-1+deb12u1 | DEBIAN-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.
- OALDERS HTML::Entities: affected: before 3.84; fixed in
3.84
Solution: Upgrade to HTML-Parser 3.84 or later.
Vendor advisories:
- https://github.com/libwww-perl/HTML-Parser/pull/56 (patch)
- https://github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1… (patch)
References
- https://github.com/libwww-perl/HTML-Parser/pull/56
- https://github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1c.patch
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.