CVE-2023-34620: hjson stack exhaustion vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.32735%
CWE
Published
6/14/2023
Updated
11/8/2023
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 |
|---|---|---|---|
| org.hjson:hjson | maven | <= 3.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The stack trace in the PoC shows recursive calls between readObject and readValue methods during parsing. This indicates a recursive descent parser implementation without depth limiting mechanisms. The vulnerability manifests when processing cyclic/overly nested structures through these recursive calls, eventually exhausting the stack. The correlation with CWE-400 (uncontrolled resource consumption) and the provided PoC demonstrating stack overflow confirm this analysis. Similar vulnerabilities in other JSON parsers (Jackson/GSON) were resolved by adding depth tracking or iterative parsing, further supporting this conclusion.