# CVE-2021-31684: Out of bounds read in json-smart

Source: https://junglewise.ai/threats/cve-2021-31684-out-of-bounds-read-in-json-smart  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-02-10  
License: CC BY 4.0 with a link back

CVE-2021-31684 · Severity: low · CVSS 3.1 · Published 2022-02-10

Out of bounds read in json-smart

Technologies: [net.minidev:json-smart (Maven)](https://junglewise.ai/threats/technologies/net-minidev-json-smart). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-31684 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-31684 being exploited in the wild.

**How severe is CVE-2021-31684?** Low severity, with a CVSS score of 3.1, published 10 February 2022.

**Which products and versions are affected?** net.minidev:json-smart (Maven) ECOSYSTEM:introduced=1.3.0,fixed=1.3.3.

**Is there a fix for CVE-2021-31684?** Yes. net.minidev:json-smart (Maven): upgrade to 1.3.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-31684?** Check whether you run net.minidev:json-smart (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- net.minidev:json-smart (Maven): upgrade to 1.3.3 or later

  ```sh
  # set net.minidev:json-smart to 1.3.3 in your pom.xml or build.gradle
  ```


## Affected products

- net.minidev:json-smart (Maven) ECOSYSTEM:introduced=1.3.0,fixed=1.3.3

## Identifiers

- CVE-2021-31684
- GHSA-fg2v-w576-w4v3

## Related threats

- [Netplex Json-smart Uncontrolled Recursion vulnerability](https://junglewise.ai/threats/cve-2024-57699-netplex-json-smart-uncontrolled-recursion-vulnerability)
- [net.minidev json-smart uncontrolled recursion in JSON parser](https://junglewise.ai/threats/cve-2023-1370-net-minidev-json-smart-uncontrolled-recursion-in-json-parser)
- [Improper Check for Unusual or Exceptional Conditions in json-smart](https://junglewise.ai/threats/cve-2021-27568-improper-check-for-unusual-or-exceptional-conditions-in-json)
