Every CVE Search/ Get API key

CVE-2021-31684

Out of bounds read in json-smart

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.28%Up 0.9 points since Jun 2, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2021-31684
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-31684
Updated
2026-11-02
EUVDEUVD-2022-0980 No score

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.

Record
EUVD-2022-0980
Updated
2026-11-03
GitHub AdvisoriesGHSA-fg2v-w576-w4v3 7.5

Out of bounds read in json-smart

A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions prior to 1.3.3 and 2.4.5 which causes a denial of service (DOS) via a crafted web request.

Record
GHSA-fg2v-w576-w4v3
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-125, CWE-787
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2021-31684
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-31684 7.5

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.

Record
DEBIAN-CVE-2021-31684
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVGHSA-fg2v-w576-w4v3 7.5

Out of bounds read in json-smart

A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions prior to 1.3.3 and 2.4.5 which causes a denial of service (DOS) via a crafted web request.

Record
GHSA-fg2v-w576-w4v3
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-125, CWE-787
Updated
2026-11-02
OSVUBUNTU-CVE-2021-31684 7.5

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.

Record
UBUNTU-CVE-2021-31684
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1773015250 No score

TuxCare security update for net.minidev:json-smart (1 CVE)

TuxCare rebuilt net.minidev:json-smart to address 1 CVE. Fixed in 1.3.2-tuxcare.2.

Record
CLSA-2026-1773015250
Updated
2026-11-02
OSVCLSA-2026-1789372281 No score

TuxCare security update for net.minidev:json-smart (1 CVE)

TuxCare rebuilt net.minidev:json-smart to address 1 CVE. Fixed in 2.4.2-tuxcare.1.

Record
CLSA-2026-1789372281
Updated
2026-11-02
OSVCLSA-2026-1789461880 No score

TuxCare security update for net.minidev:json-smart (1 CVE)

TuxCare rebuilt net.minidev:json-smart to address 1 CVE. Fixed in 2.3-tuxcare.1.

Record
CLSA-2026-1789461880
Updated
2026-11-02
OSVCLSA-2026-1793827383 No score

TuxCare security update for net.minidev:json-smart (1 CVE)

TuxCare rebuilt net.minidev:json-smart to address 1 CVE. Fixed in 1.1.1-tuxcare.2.

Record
CLSA-2026-1793827383
Updated
2026-11-05
OSVCLSA-2026-1793827478 No score

TuxCare security update for net.minidev:json-smart (1 CVE)

TuxCare rebuilt net.minidev:json-smart to address 1 CVE. Fixed in 2.2.1-tuxcare.2.

Record
CLSA-2026-1793827478
Updated
2026-11-05
OSVUSN-6011-1 No score

json-smart vulnerabilities

It was discovered that Json-smart incorrectly handled memory when processing input containing unclosed quotes. A remote attacker could possibly use this issue to cause applications using Json-smart to crash, leading to a denial of service. (CVE-2021-31684)

It was discovered that Json-smart incorrectly handled memory when processing input containing unclosed brackets. A remote attacker could possibly use this issue to cause applications using Json-smart to crash, leading to a denial of service. (CVE-2023-1370)

Record
USN-6011-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
net.minidev:json-smart
Maven
1.3.0 up to 1.3.3
1.3.3
net.minidev:json-smart
Maven
2.4.0 up to 2.4.4
2.4.4
net.minidev:json-smart
TuxCare:Maven
1.3.2 up to 1.3.2-tuxcare.2, plus listed versions
1.3.2-tuxcare.1
1.3.2-tuxcare.2
net.minidev:json-smart
TuxCare:Maven
2.4.2 up to 2.4.2-tuxcare.1
2.4.2-tuxcare.1
net.minidev:json-smart
TuxCare:Maven
2.3 up to 2.3-tuxcare.1
2.3-tuxcare.1
net.minidev:json-smart
TuxCare:Maven
1.1.1 up to 1.1.1-tuxcare.2, plus listed versions
1.1.1-tuxcare.1
1.1.1-tuxcare.2
net.minidev:json-smart
TuxCare:Maven
2.2.1 up to 2.2.1-tuxcare.2, plus listed versions
2.2.1-tuxcare.1
2.2.1-tuxcare.2
json-smart
Debian:12
before 2.2-2+deb12u1, plus listed versions
2.2-2
2.2-2+deb12u1
json-smart
Debian:13
before 2.5.1-1
2.5.1-1
json-smart
Debian:14
before 2.5.1-1
2.5.1-1
Show 9 moreShow less
Affected packages
PackageAffectedFixed
json-smart
Debian:10
From an advisory covering 2 CVEs
before 2.2-2+deb10u1, plus listed versions
2.2-2
2.2-2+deb10u1
net.minidev:json-smart
Maven
1.3.0 up to 1.3.3, plus listed versions
1.31.3.11.3.2
1.3.3
net.minidev:json-smart
Maven
2.4.0 up to 2.4.4, plus listed versions
2.4.12.4.2
2.4.4
json-smart
Ubuntu:18.04:LTS
before 2.2-2ubuntu0.18.04.1, plus listed versions
2.2-12.2-2
2.2-2ubuntu0.18.04.1
json-smart
Ubuntu:20.04:LTS
before 2.2-2ubuntu0.20.04.1, plus listed versions
2.2-2
2.2-2ubuntu0.20.04.1
json-smart
Ubuntu:22.04:LTS
before 2.2-2ubuntu0.22.04.1, plus listed versions
2.2-2
2.2-2ubuntu0.22.04.1
json-smart
Ubuntu:18.04:LTS
From an advisory covering 2 CVEs
before 2.2-2ubuntu0.18.04.1, plus listed versions
2.2-12.2-2
2.2-2ubuntu0.18.04.1
json-smart
Ubuntu:20.04:LTS
From an advisory covering 2 CVEs
before 2.2-2ubuntu0.20.04.1, plus listed versions
2.2-2
2.2-2ubuntu0.20.04.1
json-smart
Ubuntu:22.04:LTS
From an advisory covering 2 CVEs
before 2.2-2ubuntu0.22.04.1, plus listed versions
2.2-2
2.2-2ubuntu0.22.04.1

History

History
RecordedChangedSources
affected
affected, aliases, factsOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-31684 is a high vulnerability (CVSS 7.5) in Json-smart Project Json-smart-v1, published June 1, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.28%, the 83rd percentile. Fixed in net.minidev:json-smart 1.3.3.

References

Show 10 moreShow less
MoveEnter Open