CVE-2021-31684 Out of bounds read in json-smart
Attackers can cause a denial of service in applications using JSON Smart by sending crafted web requests that trigger an out-of-bounds write.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-31684?
CVE-2021-31684 is a high-severity denial of service vulnerability in n/a, published on 1 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of service (DOS) via a crafted web request.
Weakness: CWE-787
Which versions are affected by CVE-2021-31684?
4 open source packages ship an affected version, including net.minidev:json-smart. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
net.minidev:json-smart Maven | From 1.3.0 | 1.3.3 |
net.minidev:json-smart Maven | From 1.3.0 | 1.3.3 |
net.minidev:json-smart Maven | From 2.4.0 | 2.4.4 |
net.minidev:json-smart Maven | From 2.4.0 | 2.4.4 |
Products include Json-Smart Project Json-Smart-V1, Json-Smart Project Json-Smart-V2, Oracle Utilities Framework.
How do I fix CVE-2021-31684?
Upgrade net.minidev:json-smart to a fixed version for your release line: 1.3.3 or 2.4.4.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-31684 being exploited?
There is no known exploitation of CVE-2021-31684 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as CLEANSTART-2026-FO78987, CLEANSTART-2026-GB22495, CLSA-2026-1773015250, CLSA-2026-1789372281, CLSA-2026-1789461880, DEBIAN-CVE-2021-31684 and 7 more.