CVE-2023-34624:
htmlcleaner vulnerable to stack exhaustion
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41251%
CWE
Published
6/14/2023
Updated
1/6/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
net.sourceforge.htmlcleaner:htmlcleaner | maven | < 2.29 | 2.29 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The stack trace in GitHub issue #13 shows repeated calls to markNodesToPrune()
causing StackOverflowError. This indicates recursive processing without depth control. The vulnerability manifests when parsing HTML with deep nesting/cyclic references, as shown in the PoC. The Debian security advisory confirms the fix involved adding nesting depth limits, which would directly impact these recursive functions. While markNodesToPrune
is clearly vulnerable (high confidence), addIfNeededToPruneSet
is implicated in the stack trace but with less direct evidence of being the primary recursion driver (medium confidence).