CVE Vulnerabilities

CVE-2023-1370

Uncontrolled Recursion

Published: Mar 22, 2023 | Modified: Jun 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

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.

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

Name Vendor Start Version End Version
Json-smart Json-smart_project * 2.4.9 (excluding)
AMQ Clients RedHat json-smart *
CEQ 2.13.2-2 RedHat json-smart *
CEQ 2.7.1-1 RedHat json-smart *
OCP-Tools-4.12-RHEL-8 RedHat jenkins-2-plugins-0:4.12.1686649756-1.el8 *
OCP-Tools-4.13-RHEL-8 RedHat jenkins-0:2.401.1.1686680404-3.el8 *
OpenShift Developer Tools and Services for OCP 4.11 RedHat jenkins-2-plugins-0:4.11.1686831822-1.el8 *
Red Hat AMQ Streams 2.4.0 RedHat *
Red Hat AMQ Streams 2.7.0 RedHat *
Red Hat Fuse 7.12 RedHat json-smart *
Red Hat OpenShift Container Platform 4.10 RedHat jenkins-2-plugins-0:4.10.1684982411-1.el8 *
RHINT Camel-K-1.10.1 RedHat json-smart *
RHINT Camel-Springboot 3.18.3.P1 RedHat json-smart *
RHINT Camel-Springboot 3.18.3.P2 RedHat json-smart *
RHINT Camel-Springboot 3.20.1 RedHat json-smart *
Json-smart Ubuntu bionic *
Json-smart Ubuntu devel *
Json-smart Ubuntu focal *
Json-smart Ubuntu jammy *
Json-smart Ubuntu kinetic *
Json-smart Ubuntu lunar *
Json-smart Ubuntu trusty *
Json-smart Ubuntu xenial *

Potential Mitigations

References