Libhtml parser perl: HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities.
HTML::Entities versions before 3.84 for Perl contain a vulnerability in the _decode_entities function where freed heap memory is read. This occurs due to a cached pointer into a reallocated and freed string buffer, leading to potential disclosure of adjacent heap contents. The issue affects multiple specific versions of libhtml-parser-perl, primarily used in various Ubuntu LTS releases. The vulnerability allows reading sensitive memory but does not impact integrity or availability.
AI Analysis
Technical Summary
The vulnerability exists in the XS routine backing HTML::Entities::_decode_entities in versions before 3.84. It involves caching a pointer into the entity-value SV returned by hv_fetch on the entity2char hash. When the input SV matches a value SV containing its own key as an entity reference, a subsequent grow_gap() call reallocates the SV's PV buffer and frees the original allocation that the cached pointer references. This leads to reading freed heap memory during a copy loop, potentially disclosing adjacent heap contents into the destination SV. This is a use-after-free read vulnerability affecting specific versions of libhtml-parser-perl used in Ubuntu distributions.
Potential Impact
The vulnerability allows an attacker to read freed heap memory, which may disclose adjacent heap contents. This can lead to information disclosure (confidentiality impact) but does not affect integrity or availability. There are no known exploits in the wild as of the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor official Ubuntu security advisories for updates or patches addressing this issue. Until a patch is available, avoid processing untrusted input with affected versions of HTML::Entities to reduce risk.
Libhtml parser perl: HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities.
Description
HTML::Entities versions before 3.84 for Perl contain a vulnerability in the _decode_entities function where freed heap memory is read. This occurs due to a cached pointer into a reallocated and freed string buffer, leading to potential disclosure of adjacent heap contents. The issue affects multiple specific versions of libhtml-parser-perl, primarily used in various Ubuntu LTS releases. The vulnerability allows reading sensitive memory but does not impact integrity or availability.
CVSS v3.1
Score 7.5high
Affected software
pkg:deb/ubuntu/[email protected]?arch=source&distro=trustypkg:deb/ubuntu/[email protected]?arch=source&distro=xenialpkg:deb/ubuntu/[email protected]?arch=source&distro=bionicpkg:deb/ubuntu/[email protected]?arch=source&distro=focalpkg:deb/ubuntu/[email protected]?arch=source&distro=jammypkg:deb/ubuntu/[email protected]?arch=source&distro=noblepkg:deb/ubuntu/[email protected]?arch=source&distro=questingpkg:deb/ubuntu/[email protected]?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the XS routine backing HTML::Entities::_decode_entities in versions before 3.84. It involves caching a pointer into the entity-value SV returned by hv_fetch on the entity2char hash. When the input SV matches a value SV containing its own key as an entity reference, a subsequent grow_gap() call reallocates the SV's PV buffer and frees the original allocation that the cached pointer references. This leads to reading freed heap memory during a copy loop, potentially disclosing adjacent heap contents into the destination SV. This is a use-after-free read vulnerability affecting specific versions of libhtml-parser-perl used in Ubuntu distributions.
Potential Impact
The vulnerability allows an attacker to read freed heap memory, which may disclose adjacent heap contents. This can lead to information disclosure (confidentiality impact) but does not affect integrity or availability. There are no known exploits in the wild as of the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor official Ubuntu security advisories for updates or patches addressing this issue. Until a patch is available, avoid processing untrusted input with affected versions of HTML::Entities to reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-8829
- Osv Schema Version
- 1.7.0
- Aliases
- []
- Ecosystems
- ["Ubuntu:14.04:LTS","Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS"]
- Database Specific Severity
- null
- Cvss Version
- 3.1
Threat ID: 6a6151239c2644c7f8da621c
Added to database: 07/22/2026, 23:24:19 UTC
Last enriched: 07/22/2026, 23:55:50 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 19
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.