CVE-2026-8829
HTML::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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
HTML::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.
- Record
CVE-2026-8829- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-416
- Updated
- 2026-11-02
EUVDEUVD-2026-34194
7.5
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.
- Record
EUVD-2026-34194- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-9p7j-9995-m88w
7.5
HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities. The XS...
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.
- Record
GHSA-9p7j-9995-m88w- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-416
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2026-8829- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-416
- Updated
- 2026-11-02
OSVBELL-CVE-2026-8829
7.5
- Record
BELL-CVE-2026-8829- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSV
7.5
HTML::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.
- Record
CVE-2026-8829- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-416
- Updated
- 2026-11-02
Show 11 moreShow less
OSVDEBIAN-CVE-2026-8829
7.5
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.
- Record
DEBIAN-CVE-2026-8829- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVOESA-2026-2672
7.5
perl-HTML-Parser security update
Objects of the HTML::Parser class will recognize markup and separate it from plain text (alias data content) in HTML documents. As different kinds of markup and text are recognized, the corresponding event handlers are invoked.
Security Fix(es):
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.(CVE-2026-8829)
- Record
OESA-2026-2672- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-8829
7.5
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.
- Record
UBUNTU-CVE-2026-8829- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVAZL-89451 No score
CVE-2026-8829 affecting package perl-HTML-Parser for versions less than 3.82-2
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.
- Record
AZL-89451- Updated
- 2026-11-05
OSVMGASA-2026-0264 No score
Updated perl-HTML-Parser packages fix security vulnerability
HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities. (CVE-2026-8829)
- Record
MGASA-2026-0264- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10957-1 No score
perl-HTML-Parser-3.850.0-1.1 on GA media
These are all security issues fixed in the perl-HTML-Parser-3.850.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10957-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:21126-1 No score
Security update for perl-HTML-Parser
This update for perl-HTML-Parser fixes the following issue
- CVE-2026-8829: HTML:Entities versions before 3.84 for Perl read freed heap memory in _decode_entities (bsc#1267606).
- Record
openSUSE-SU-2026:21126-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:22189-1 No score
Security update for perl-HTML-Parser
This update for perl-HTML-Parser fixes the following issue
- CVE-2026-8829: HTML:Entities versions before 3.84 for Perl read freed heap memory in _decode_entities (bsc#1267606).
- Record
SUSE-SU-2026:22189-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2948-1 No score
Security update for perl-HTML-Parser
This update for perl-HTML-Parser fixes the following issue
- CVE-2026-8829: HTML:Entities versions before 3.84 for Perl read freed heap memory in _decode_entities (bsc#1267606).
- Record
SUSE-SU-2026:2948-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2950-1 No score
Security update for perl-HTML-Parser
This update for perl-HTML-Parser fixes the following issue
- CVE-2026-8829: HTML:Entities versions before 3.84 for Perl read freed heap memory in _decode_entities (bsc#1267606).
- Record
SUSE-SU-2026:2950-1- Updated
- 2026-11-02
OSVUSN-8587-1 No score
libhtml-parser-perl vulnerability
It was discovered that HTML-Parser incorrectly handled entity references when the input string was identical to an entity value in the lookup table. An attacker could possibly use this issue to obtain sensitive information.
- Record
USN-8587-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
perl-HTML-ParserAzure Linux:3 |
before 3.82-2 | 3.82-2 |
perl-html-parserAlpaquita:23 |
3.80-r0 up to 3.80-r1 | 3.80-r1 |
perl-html-parserAlpaquita:25 |
3.83-r0 up to 3.83-r1 | 3.83-r1 |
perl-html-parserAlpaquita:stream |
3.80-r0 up to 3.83-r2 | 3.83-r2 |
libhtml-parser-perlDebian:12 |
before 3.81-1+deb12u1, plus listed versions 3.81-1 |
3.81-1+deb12u1 |
libhtml-parser-perlDebian:13 |
before 3.83-2~deb13u1, plus listed versions 3.83-1 |
3.83-2~deb13u1 |
libhtml-parser-perlDebian:14 |
before 3.83-2, plus listed versions 3.83-13.83-2~deb13u1 |
3.83-2 |
perl-HTML-ParserMageia:10 |
before 3.830.0-3.1.mga10 | 3.830.0-3.1.mga10 |
perl-HTML-ParserMageia:9 |
before 3.810.0-1.1.mga9 | 3.810.0-1.1.mga9 |
perl-HTML-ParseropenEuler:24.03-LTS-SP1 |
before 3.81-2.oe2403sp1 | 3.81-2.oe2403sp1 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
perl-HTML-ParseropenEuler:24.03-LTS-SP3 |
before 3.81-2.oe2403sp3 | 3.81-2.oe2403sp3 |
perl-HTML-ParseropenEuler:20.03-LTS-SP4 |
before 3.73-2.oe2003sp4 | 3.73-2.oe2003sp4 |
perl-HTML-ParseropenEuler:22.03-LTS-SP4 |
before 3.78-2.oe2203sp4 | 3.78-2.oe2203sp4 |
perl-HTML-ParserSUSE:Linux Enterprise Server 16.0 |
before 3.830.0-160000.3.1 | 3.830.0-160000.3.1 |
perl-HTML-ParserSUSE:Linux Enterprise Server for SAP applications 16.0 |
before 3.830.0-160000.3.1 | 3.830.0-160000.3.1 |
perl-HTML-ParserSUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 |
before 3.71-3.3.1 | 3.71-3.3.1 |
perl-HTML-ParserSUSE:Linux Enterprise Module for Basesystem 15 SP7 |
before 3.830.0-150000.3.6.1 | 3.830.0-150000.3.6.1 |
libhtml-parser-perlUbuntu:14.04:LTS |
All versions, plus listed versions 3.71-13.71-1build1 |
None known |
libhtml-parser-perlUbuntu:16.04:LTS |
All versions, plus listed versions 3.71-23.71-2build13.72-1 |
None known |
libhtml-parser-perlUbuntu:18.04:LTS |
All versions, plus listed versions 3.72-3build1 |
None known |
libhtml-parser-perlUbuntu:20.04:LTS |
All versions, plus listed versions 3.72-3build23.72-3build33.72-5 |
None known |
libhtml-parser-perlUbuntu:22.04:LTS |
before 3.76-1ubuntu0.1, plus listed versions 3.76-13.76-1build13.76-1build2 |
3.76-1ubuntu0.1 |
libhtml-parser-perlUbuntu:24.04:LTS |
before 3.81-1ubuntu0.1, plus listed versions 3.81-13.81-1build13.81-1build23.81-1build3 |
3.81-1ubuntu0.1 |
libhtml-parser-perlUbuntu:25.10 |
All versions, plus listed versions 3.83-1build1 |
None known |
libhtml-parser-perlUbuntu:26.04:LTS |
before 3.83-1ubuntu0.1, plus listed versions 3.83-1build1 |
3.83-1ubuntu0.1 |
perl-HTML-ParseropenSUSE:Tumbleweed |
before 3.850.0-1.1 | 3.850.0-1.1 |
perl-HTML-ParseropenSUSE:Leap 16.0 |
before 3.830.0-160000.3.1 | 3.830.0-160000.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-8829 is a high vulnerability (CVSS 7.5) in Oalders Html::entities, published June 4, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in perl-HTML-Parser 3.82-2.
References
github.com/libwww-perl/HTML-Parser/pull/56
github.com/libwww-perl/HTML-Parser/commit/6922552b0778c90a9587a3894e248be4d3a25e1c.patch
openwall.com/lists/oss-security/2026/06/04/2
lists.debian.org/debian-lts-announce/2026/06/msg00044.html
nvd.nist.gov/vuln/detail/CVE-2026-8829
github.com/advisories/GHSA-9p7j-9995-m88w
Show 17 moreShow less
docs.bell-sw.com/security/cves/CVE-2026-8829
cpan.org/modules
github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8829.json
github.com/libwww-perl/HTML-Parser
security-tracker.debian.org/tracker/CVE-2026-8829
advisories.mageia.org/MGASA-2026-0264.html
bugs.mageia.org/show_bug.cgi?id=35632
lists.opensuse.org/archives/list/[email protected]/message/CNUNI2FWJG22SMHLLF6L6BGYNBH6YI52
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2672
suse.com/support/update/announcement/2026/suse-su-202622189-1
bugzilla.suse.com/1267606
suse.com/security/cve/CVE-2026-8829
suse.com/support/update/announcement/2026/suse-su-20262948-1
suse.com/support/update/announcement/2026/suse-su-20262950-1
ubuntu.com/security/CVE-2026-8829
cve.org/CVERecord?id=CVE-2026-8829
ubuntu.com/security/notices/USN-8587-1