CVE-2026-8829: CWE-416 Use After Free in OALDERS HTML::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.
AI Analysis
Technical Summary
CVE-2026-8829 describes a use-after-free vulnerability (CWE-416) in the HTML::Entities Perl module prior to version 3.84. The XS routine backing _decode_entities caches a pointer into an entity-value SV obtained from the entity2char hash. When the input SV matches a value SV in that hash and that value contains its own key as an entity reference, a subsequent grow_gap() call reallocates the SV's PV buffer, freeing the original allocation that the cached pointer references. The later copy operation reads from this freed memory, potentially disclosing adjacent heap contents into the destination SV.
Potential Impact
The vulnerability allows an attacker to read freed heap memory, which may disclose sensitive adjacent heap contents. The CVSS score of 7.5 reflects a high confidentiality impact with no impact on integrity or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch information is currently available. Users should monitor for updates from the OALDERS project or CPAN security advisories and apply any forthcoming patches promptly.
CVE-2026-8829: CWE-416 Use After Free in OALDERS HTML::Entities
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.
CVSS v3.1
Score 7.5high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-8829 describes a use-after-free vulnerability (CWE-416) in the HTML::Entities Perl module prior to version 3.84. The XS routine backing _decode_entities caches a pointer into an entity-value SV obtained from the entity2char hash. When the input SV matches a value SV in that hash and that value contains its own key as an entity reference, a subsequent grow_gap() call reallocates the SV's PV buffer, freeing the original allocation that the cached pointer references. The later copy operation reads from this freed memory, potentially disclosing adjacent heap contents into the destination SV.
Potential Impact
The vulnerability allows an attacker to read freed heap memory, which may disclose sensitive adjacent heap contents. The CVSS score of 7.5 reflects a high confidentiality impact with no impact on integrity or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch information is currently available. Users should monitor for updates from the OALDERS project or CPAN security advisories and apply any forthcoming patches promptly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-18T13:24:05.252Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a20e3ffe29bf47b504caba3
Added to database: 06/04/2026, 02:33:35 UTC
Last enriched: 06/28/2026, 20:58:16 UTC
Last updated: 07/31/2026, 19:24:50 UTC
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.