CVE-2023-1370 Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON
HighCVSS 7.5
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
Json-smart is a performance focused, JSON processor lib.
When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively.
It was discovered that the code 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 a stack exhaustion (stack overflow) and crash the software.
Upgrade path
9 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/json-smart(Debian 12) | < 2.2-2+deb12u1; = 2.2-2 | 2.2-2+deb12u1 | Fixed |
| debian/json-smart(Debian 13) | < 2.2-3 | 2.2-3 | Fixed |
| debian/json-smart(Debian 14) | < 2.2-3 | 2.2-3 | Fixed |
| json-smart | < 2.4.9 | 2.4.9 | Fixed |
| json-smart project json-smart | < 2.4.9 | 2.4.9 | Fixed |
| net.minidev/json-smart(Maven) | < 2.4.9; = 1.0.6.3; = 1.0.8; = 1.0.9 +25 more | 2.4.9 | Fixed |
| ubuntu/json-smart(Ubuntu 18.04) | < 2.2-2ubuntu0.18.04.1; = 2.2-1; = 2.2-2 | 2.2-2ubuntu0.18.04.1 | Fixed |
| ubuntu/json-smart(Ubuntu 20.04) | < 2.2-2ubuntu0.20.04.1; = 2.2-2 | 2.2-2ubuntu0.20.04.1 | Fixed |
| ubuntu/json-smart(Ubuntu 22.04) | < 2.2-2ubuntu0.22.04.1; = 2.2-2 | 2.2-2ubuntu0.22.04.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| net.minidev/json-smart(Maven) | < 2.4.9 | 2.4.9 |
| net.minidev/json-smart(Maven) | = 1.0.6.3 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.0.8 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.0.9 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.0.9-1 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.1.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.2 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.3 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.3.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.3.2 | No fix listed |
| net.minidev/json-smart(Maven) | = 1.3.3 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.0 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.0-RC1 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.0-RC2 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.0-RC3 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.1.0 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.1.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.2 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.2.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.3 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.3.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.4.1 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.4.2 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.4.4 | No fix listed |
Show 17 more
| Product | Affected versions | Fixed in |
|---|---|---|
| net.minidev/json-smart(Maven) | = 2.4.5 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.4.6 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.4.7 | No fix listed |
| net.minidev/json-smart(Maven) | = 2.4.8 | No fix listed |
| debian/json-smart(Debian:12) | < 2.2-2+deb12u1 | 2.2-2+deb12u1 |
| debian/json-smart(Debian:12) | = 2.2-2 | No fix listed |
| debian/json-smart(Debian:13) | < 2.2-3 | 2.2-3 |
| debian/json-smart(Debian:14) | < 2.2-3 | 2.2-3 |
| json-smart | < 2.4.9 | 2.4.9 |
| ubuntu/json-smart(Ubuntu:22.04) | < 2.2-2ubuntu0.22.04.1 | 2.2-2ubuntu0.22.04.1 |
| json-smart project json-smart | < 2.4.9 | 2.4.9 |
| ubuntu/json-smart(Ubuntu:18.04) | < 2.2-2ubuntu0.18.04.1 | 2.2-2ubuntu0.18.04.1 |
| ubuntu/json-smart(Ubuntu:18.04) | = 2.2-1 | No fix listed |
| ubuntu/json-smart(Ubuntu:18.04) | = 2.2-2 | No fix listed |
| ubuntu/json-smart(Ubuntu:20.04) | < 2.2-2ubuntu0.20.04.1 | 2.2-2ubuntu0.20.04.1 |
| ubuntu/json-smart(Ubuntu:20.04) | = 2.2-2 | No fix listed |
| ubuntu/json-smart(Ubuntu:22.04) | = 2.2-2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com patch
- github.com patch
- github.com product
- research.jfrog.com exploit issue-tracking third-party-advisory
- security.netapp.com
- security.snyk.io
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2023-1370 vendor-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6011-1 vendor-advisory
- bugs.debian.org issue-tracking