{"id":"UBUNTU-CVE-2021-31684","details":"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.","modified":"2026-01-30T02:19:13.835743Z","published":"2021-06-01T20:15:00Z","related":["USN-6011-1"],"upstream":["CVE-2021-31684"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-31684"},{"type":"REPORT","url":"https://github.com/netplex/json-smart-v1/issues/10"},{"type":"REPORT","url":"https://github.com/netplex/json-smart-v1/pull/11"},{"type":"REPORT","url":"https://github.com/netplex/json-smart-v2/issues/67"},{"type":"REPORT","url":"https://github.com/netplex/json-smart-v2/pull/68"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6011-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-31684"}],"affected":[{"package":{"name":"json-smart","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/json-smart@2.2-2ubuntu0.18.04.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2-2ubuntu0.18.04.1"}]}],"versions":["2.2-1","2.2-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.2-2ubuntu0.18.04.1","binary_name":"libjson-smart-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31684.json"}},{"package":{"name":"json-smart","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/json-smart@2.2-2ubuntu0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2-2ubuntu0.20.04.1"}]}],"versions":["2.2-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libjson-smart-java","binary_version":"2.2-2ubuntu0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31684.json"}},{"package":{"name":"json-smart","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/json-smart@2.2-2ubuntu0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2-2ubuntu0.22.04.1"}]}],"versions":["2.2-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libjson-smart-java","binary_version":"2.2-2ubuntu0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31684.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}