VYPR
High severityNVD Advisory· Published Jun 1, 2021· Updated Aug 3, 2024

CVE-2021-31684

CVE-2021-31684

Description

A denial of service vulnerability in JSON Smart's indexOf function allows crafted web requests to cause an ArrayIndexOutOfBoundsException, leading to application crash.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A denial of service vulnerability in JSON Smart's indexOf function allows crafted web requests to cause an ArrayIndexOutOfBoundsException, leading to application crash.

Vulnerability

The indexOf function in JSONParserByteArray in JSON Smart versions 1.3 and 2.4 is vulnerable to an ArrayIndexOutOfBoundsException when processing specially crafted JSON input. This flaw can be triggered remotely via a web request, resulting in a denial of service (DoS) condition [1][2][3].

Exploitation

An attacker can exploit this vulnerability by sending a crafted web request containing malicious JSON data to an application that uses the vulnerable JSON Smart library. No authentication or special privileges are required; the attack is network-based and can be performed remotely.

Impact

Successful exploitation causes the application to crash due to an unhandled ArrayIndexOutOfBoundsException, leading to a denial of service. This impacts the availability of the affected service, though no data integrity or confidentiality is compromised.

Mitigation

Fixes are available in pull requests for both affected versions: for JSON Smart v1, see [3]; for v2, see [1]. Users should update to patched versions (e.g., v1.4 or later for v1, and v2.4.1 or later for v2) as soon as possible. The NVD entry [2] provides additional details and links to advisories.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
net.minidev:json-smartMaven
>= 1.3.0, < 1.3.31.3.3
net.minidev:json-smartMaven
>= 2.4.0, < 2.4.42.4.4

Affected products

17

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

11

News mentions

0

No linked articles in our index yet.