Uncontrolled Recursion Affecting elasticsearch-8 package, versions <8.13.2-r1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.11% (46th 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-CHAINGUARDLATEST-ELASTICSEARCH8-6593182
  • published9 Apr 2024
  • 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 Chainguard elasticsearch-8 to version 8.13.2-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream elasticsearch-8 package and not the elasticsearch-8 package as distributed by Chainguard. See How to fix? for Chainguard 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 Scores

version 3.1