Every CVE Search/ Get API key

CVE-2026-8829

HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities

7.5 HighFix available

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

0.41%Up 0.4 points since Jun 4, 2026
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
perl-HTML-Parser
Azure Linux:3
before 3.82-2
3.82-2
perl-html-parser
Alpaquita:23
3.80-r0 up to 3.80-r1
3.80-r1
perl-html-parser
Alpaquita:25
3.83-r0 up to 3.83-r1
3.83-r1
perl-html-parser
Alpaquita:stream
3.80-r0 up to 3.83-r2
3.83-r2
libhtml-parser-perl
Debian:12
before 3.81-1+deb12u1, plus listed versions
3.81-1
3.81-1+deb12u1
libhtml-parser-perl
Debian:13
before 3.83-2~deb13u1, plus listed versions
3.83-1
3.83-2~deb13u1
libhtml-parser-perl
Debian:14
before 3.83-2, plus listed versions
3.83-13.83-2~deb13u1
3.83-2
perl-HTML-Parser
Mageia:10
before 3.830.0-3.1.mga10
3.830.0-3.1.mga10
perl-HTML-Parser
Mageia:9
before 3.810.0-1.1.mga9
3.810.0-1.1.mga9
perl-HTML-Parser
openEuler:24.03-LTS-SP1
before 3.81-2.oe2403sp1
3.81-2.oe2403sp1
Show 17 moreShow less
Affected packages
PackageAffectedFixed
perl-HTML-Parser
openEuler:24.03-LTS-SP3
before 3.81-2.oe2403sp3
3.81-2.oe2403sp3
perl-HTML-Parser
openEuler:20.03-LTS-SP4
before 3.73-2.oe2003sp4
3.73-2.oe2003sp4
perl-HTML-Parser
openEuler:22.03-LTS-SP4
before 3.78-2.oe2203sp4
3.78-2.oe2203sp4
perl-HTML-Parser
SUSE:Linux Enterprise Server 16.0
before 3.830.0-160000.3.1
3.830.0-160000.3.1
perl-HTML-Parser
SUSE:Linux Enterprise Server for SAP applications 16.0
before 3.830.0-160000.3.1
3.830.0-160000.3.1
perl-HTML-Parser
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
before 3.71-3.3.1
3.71-3.3.1
perl-HTML-Parser
SUSE:Linux Enterprise Module for Basesystem 15 SP7
before 3.830.0-150000.3.6.1
3.830.0-150000.3.6.1
libhtml-parser-perl
Ubuntu:14.04:LTS
All versions, plus listed versions
3.71-13.71-1build1
None known
libhtml-parser-perl
Ubuntu:16.04:LTS
All versions, plus listed versions
3.71-23.71-2build13.72-1
None known
libhtml-parser-perl
Ubuntu:18.04:LTS
All versions, plus listed versions
3.72-3build1
None known
libhtml-parser-perl
Ubuntu:20.04:LTS
All versions, plus listed versions
3.72-3build23.72-3build33.72-5
None known
libhtml-parser-perl
Ubuntu:22.04:LTS
before 3.76-1ubuntu0.1, plus listed versions
3.76-13.76-1build13.76-1build2
3.76-1ubuntu0.1
libhtml-parser-perl
Ubuntu: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-perl
Ubuntu:25.10
All versions, plus listed versions
3.83-1build1
None known
libhtml-parser-perl
Ubuntu:26.04:LTS
before 3.83-1ubuntu0.1, plus listed versions
3.83-1build1
3.83-1ubuntu0.1
perl-HTML-Parser
openSUSE:Tumbleweed
before 3.850.0-1.1
3.850.0-1.1
perl-HTML-Parser
openSUSE:Leap 16.0
before 3.830.0-160000.3.1
3.830.0-160000.3.1

History

History
RecordedChangedSources
factsOSV
first indexedCVE 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

Show 17 moreShow less
MoveEnter Open