CVE-2023-1370 is a high-severity (CVSS 7.5) CWE-674 vulnerability in net.minidev:json-smart. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for net.minidev:json-smart — see the affected versions and patch details below.
Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for CVE-2023-1370.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
net.minidev:json-smartReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
Affected versions of net.minidev:json-smart are vulnerable to Denial of Service (DoS) due to a StackOverflowError when parsing a deeply nested JSON array or object.
When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It was discovered that the 3PP does not have any limit to the nesting of such arrays or objects. Since the parsing of nested arrays and objects is done recursively, nesting too many of them can cause stack exhaustion (stack overflow) and crash the software.
Patches
This vulnerability was fixed in json-smart version 2.4.9, but the maintainer recommends upgrading to 2.4.10, due to a remaining bug.
Workarounds
N/A
References
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | net.minidev:json-smart | all versions | 2.4.9net.minidev:json-smart:2.4.9 |
Affected Products
json-smartjson-smart_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for net.minidev:json-smart, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update net.minidev:json-smart to 2.4.9 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-1370 is resolved across your whole dependency graph.
Workarounds
Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| CEQ 2.13.2-2 | json-smart | RHSA-2023:3179 |
| CEQ 2.7.1-1 | json-smart | RHSA-2023:3193 |
| OCP-Tools-4.12-RHEL-8 | jenkins-2-plugins-0:4.12.1686649756-1.el8 | RHSA-2023:3610 |
| OCP-Tools-4.13-RHEL-8 | jenkins-0:2.401.1.1686680404-3.el8 | RHSA-2023:3622 |
| OpenShift Developer Tools and Services for OCP 4.11 | jenkins-2-plugins-0:4.11.1686831822-1.el8 | RHSA-2023:3663 |
| Red Hat AMQ Clients | json-smart | RHSA-2023:7697 |
| Red Hat AMQ Streams 2.4.0 | see advisory | RHSA-2023:3223 |
| Red Hat AMQ Streams 2.7.0 | see advisory | RHSA-2024:3527 |
Frequently Asked Questions
Is CVE-2023-1370 in your dependencies?
Find it across Maven, including transitive dependencies.