NIXPKGS-2026-1873
GitHub issue
published 6 hours ago
HTML::Entities versions before 3.84 for Perl read freed heap memory in _decode_entities
Permalink
CVE-2026-8829
7.5 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): High (H)
- Integrity (I): None (N)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): None (N)
- Modified Availability (MA): None (N)
by @LeSuisse Activity log
- Created suggestion
-
@LeSuisse
ignored
2 packages
- akkuPackages.chibi-html-parser
- chickenPackages_5.chickenEggs.html-parser
- @LeSuisse accepted
- @LeSuisse published on GitHub
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.
References
Affected products
HTML-Parser
- <3.84
Matching in nixpkgs
pkgs.perlPackages.HTMLParser
HTML parser class
Ignored packages (2)
pkgs.akkuPackages.chibi-html-parser
A permissive HTML parser supporting scalable streaming with a tree folding interface