Skip to content
Fencer Vulns
high 7.5

CVE-2021-31684 json

Out of bounds read in json-smart

published 2021-06-01 5 y ago modified 2026-09-10 1 mo ago also GHSA-fg2v-w576-w4v3 , EUVD-2022-0980

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven net.minidev:json-smart 1.3.3, 2.4.4
  • json-smart_project json-smart-v1 1.3.3
  • json-smart_project json-smart-v2 2.4.4
  • json-smart Debian 12 2.2-2+deb12u1
  • json-smart Debian 14, Debian 13 2.5.1-1

debian advisories DEBIAN-CVE-2021-31684

  • json-smart Ubuntu 18.04 LTS 2.2-2ubuntu0.18.04.1
  • json-smart Ubuntu 20.04 LTS 2.2-2ubuntu0.20.04.1
  • json-smart Ubuntu 22.04 LTS 2.2-2ubuntu0.22.04.1

ubuntu advisories UBUNTU-CVE-2021-31684

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-31684 updated cvss 7.5

json-smart: Denial of Service in JSONParserByteArray function

  • Red Hat build of Quarkus json-smart
    affected: no fix available
  • Red Hat Decision Manager 7 json-smart Red Hat Integration Data Virtualisation Operator json-smart Red Hat JBoss Data Grid 7 json-smart Red Hat JBoss Enterprise Application Platform 6 json-smart Red Hat JBoss Fuse 6 json-smart Red Hat JBoss Fuse Service Works 6 json-smart
    +1 more products
    Red Hat Process Automation 7 json-smart
    affected: no fix planned “Out of support scope”
  • Red Hat Single Sign-On 7 json-smart
    affected: no fix planned “Will not fix”
  • Red Hat Fuse 7.11.1
    fixed: vendor fix RHSA-2022:8652
  • Red Hat A-MQ Clients 2 json-smart Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/elasticsearch6-rhel8 Red Hat AMQ Broker 7 json-smart Red Hat build of Debezium 1 json-smart Red Hat Data Grid 8 json-smart Red Hat Integration Camel K 1 json-smart
    +6 more products
    Red Hat Integration Camel Quarkus 1 json-smart Red Hat JBoss Enterprise Application Platform 7 json-smart Red Hat JBoss Enterprise Application Platform Expansion Pack json-smart Red Hat OpenShift Application Runtimes json-smart Red Hat support for Spring Boot json-smart Red Hat streams for Apache Kafka json-smart
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

2.28% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/netplex/json-smart-v2/issues/67 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
maven net.minidev:json-smart
>=1.3.0, <1.3.3
>=2.4.0, <2.4.4
1.3.3
2.4.4

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.