CVE-2026-8829 HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com issue-tracking patch
- github.com patch
- www.openwall.com mailing-list third-party-advisory
- lists.debian.org
- Debian Security Tracker CVE-2026-8829 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8587-1 vendor-advisory
- www.cve.org