Uncontrolled Recursion Affecting json-smart package, versions <2.2-2+deb12u1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.12% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-JSONSMART-21692029
  • published24 Oct 2026
  • disclosed22 Mar 2023

Introduced: 22 Mar 2023

CVE-2023-1370  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade Echo:latest json-smart to version 2.2-2+deb12u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream json-smart package and not the json-smart package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

Json-smart is a performance focused, JSON processor lib.

When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively.

It was discovered that the code 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 a stack exhaustion (stack overflow) and crash the software.

CVSS Base Scores

version 3.1