Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS00OTNwLXBmcTYtNTI1OM4AAyQk

json-smart Uncontrolled Recursion vulnerabilty

Impact

Affected versions of net.minidev:json-smart are vulnerable to Denial of Service (DoS) due to a StackOverflowError when parsing a deeply nested JSON array or object.

When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It was discovered that the 3PP does not have any limit to the nesting of such arrays or objects. Since the parsing of nested arrays and objects is done recursively, nesting too many of them can cause stack exhaustion (stack overflow) and crash the software.

Patches

This vulnerability was fixed in json-smart version 2.4.9, but the maintainer recommends upgrading to 2.4.10, due to a remaining bug.

Workarounds

N/A

References

Permalink: https://github.com/advisories/GHSA-493p-pfq6-5258
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00OTNwLXBmcTYtNTI1OM4AAyQk
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 1 year ago
Updated: 10 months ago


CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Identifiers: GHSA-493p-pfq6-5258, CVE-2023-1370
References: Repository: https://github.com/oswaldobapvicjr/jsonmerge
Blast Radius: 28.0

Affected Packages

maven:net.minidev:json-smart
Dependent packages: 606
Dependent repositories: 5,367
Downloads:
Affected Version Ranges: < 2.4.9
Fixed in: 2.4.9
All affected versions: 1.0.8, 1.0.9, 1.1.1, 1.3.1, 1.3.2, 1.3.3, 2.1.0, 2.1.1, 2.2.1, 2.3.1, 2.4.1, 2.4.2, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
All unaffected versions: 2.4.9, 2.4.10, 2.4.11, 2.5.0, 2.5.1