Application crash via unbounded recursive JSON parsing
Published Aug 19, 2022 · Updated Apr 23, 2025
Stack exhaustion in the JSON parser in hjiang JSON++ 1.0.1 and earlier allows remote attackers to crash a consuming program via nested JSON. Object::parse recursively dispatches nested arrays through Value::parse and Array::parse without a nesting-depth limit, exhausting the thread stack. A consuming application must pass attacker-controlled JSON to an affected ASAN build; the documented consequence is process termination only.
Summary
What happened
Stack exhaustion in the JSON parser in hjiang JSON++ 1.0.1 and earlier allows remote attackers to crash a consuming program via nested JSON. Object::parse recursively dispatches nested arrays through Value::parse and Array::parse without a nesting-depth limit, exhausting the thread stack. A consuming application must pass attacker-controlled JSON to an affected ASAN build; the documented consequence is process termination only.
The record
- CVE
- CVE-2022-23460
- Published
- Aug 19, 2022
- Updated
- Apr 23, 2025
- Vendor
- hjiang
- Product
- JSON++
- Classifications
- CWE-121, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 19, 2022CVE publishedPublication date reported by the CVE source.
- Apr 23, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <=1.0.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- repro.json stack-exhaustion proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo