CVE-2021-31684
Out of bounds read in json-smart
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
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 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
net.minidev:json-smartMaven |
1.3.0 up to 1.3.3 | 1.3.3 |
net.minidev:json-smartMaven |
2.4.0 up to 2.4.4 | 2.4.4 |
net.minidev:json-smartTuxCare: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-smartTuxCare:Maven |
2.4.2 up to 2.4.2-tuxcare.1 | 2.4.2-tuxcare.1 |
net.minidev:json-smartTuxCare:Maven |
2.3 up to 2.3-tuxcare.1 | 2.3-tuxcare.1 |
net.minidev:json-smartTuxCare: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-smartTuxCare: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-smartDebian:12 |
before 2.2-2+deb12u1, plus listed versions 2.2-2 |
2.2-2+deb12u1 |
json-smartDebian:13 |
before 2.5.1-1 | 2.5.1-1 |
json-smartDebian:14 |
before 2.5.1-1 | 2.5.1-1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
json-smartDebian: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-smartMaven |
1.3.0 up to 1.3.3, plus listed versions 1.31.3.11.3.2 |
1.3.3 |
net.minidev:json-smartMaven |
2.4.0 up to 2.4.4, plus listed versions 2.4.12.4.2 |
2.4.4 |
json-smartUbuntu: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-smartUbuntu:20.04:LTS |
before 2.2-2ubuntu0.20.04.1, plus listed versions 2.2-2 |
2.2-2ubuntu0.20.04.1 |
json-smartUbuntu:22.04:LTS |
before 2.2-2ubuntu0.22.04.1, plus listed versions 2.2-2 |
2.2-2ubuntu0.22.04.1 |
json-smartUbuntu: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-smartUbuntu: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-smartUbuntu: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
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, aliases, facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE 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
github.com/netplex/json-smart-v1/issues/10
github.com/netplex/json-smart-v1/pull/11
github.com/netplex/json-smart-v2/issues/67
github.com/netplex/json-smart-v2/pull/68
oracle.com/security-alerts/cpujan2022.html
oracle.com/security-alerts/cpujul2022.html
Show 10 moreShow less
lists.debian.org/debian-lts-announce/2023/03/msg00030.html
security.netapp.com/advisory/ntap-20240621-0006
nvd.nist.gov/vuln/detail/CVE-2021-31684
github.com/advisories/GHSA-fg2v-w576-w4v3
security-tracker.debian.org/tracker/CVE-2021-31684
github.com/netplex/json-smart-v1
ubuntu.com/security/CVE-2021-31684
ubuntu.com/security/notices/USN-6011-1
cve.org/CVERecord?id=CVE-2021-31684
ubuntu.com/security/CVE-2023-1370