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

> An attacker can trigger a use-after-free in HTML::Entities to disclose adjacent heap memory contents via crafted entity references.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 4 Jun 2026
- **Updated:** 28 Jun 2026
- **Also known as:** AZL-89451, BELL-CVE-2026-8829, DEBIAN-CVE-2026-8829, ECHO-a119-605d-66fd, GHSA-9p7j-9995-m88w, MGASA-2026-0264, OESA-2026-2672, SUSE-SU-2026:22189-1, SUSE-SU-2026:2948-1, SUSE-SU-2026:2950-1, UBUNTU-CVE-2026-8829, USN-8587-1, openSUSE-SU-2026:10957-1, openSUSE-SU-2026:21126-1

## What is CVE-2026-8829?

CVE-2026-8829 is a high-severity use after free vulnerability in OALDERS HTML::Entities, published on 4 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2026-8829?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `perl-HTML-Parser` | SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 3.830.0-150000.3.6.1 |
| `perl-HTML-Parser` | SUSE:Linux Enterprise Server 16.0 | All versions | 3.830.0-160000.3.1 |
| `perl-HTML-Parser` | SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 3.71-3.3.1 |
| `perl-HTML-Parser` | SUSE:Linux Enterprise Server for SAP applications 16.0 | All versions | 3.830.0-160000.3.1 |
| `perl-HTML-Parser` | openSUSE:Leap 16.0 | All versions | 3.830.0-160000.3.1 |
| `perl-HTML-Parser` | openSUSE:Tumbleweed | All versions | 3.850.0-1.1 |

Products: Oalders Html\.

## How do I fix CVE-2026-8829?

Upgrade to a fixed version.

## Is CVE-2026-8829 being exploited?

There is no known exploitation of CVE-2026-8829 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-8829 and fix it if it is affected.

What it is: CVE-2026-8829 is a high-severity use after free vulnerability in OALDERS HTML::Entities, published on 4 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-8829 in the wild and no public exploit code.

Affected product: OALDERS HTML::Entities. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-8829/ (Markdown: https://insights.sbomify.com/CVE-2026-8829/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-8829
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-8829
- OSV: https://osv.dev/vulnerability/CVE-2026-8829

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-8829/
Summaries are generated and may contain mistakes; the official description above is the record.
