snowdensb / nifi

Apache NiFi
https://nifi.apache.org/
Apache License 2.0
0 stars 0 forks source link

nifi-expression-language-1.15.0-SNAPSHOT.jar: 1 vulnerabilities (highest severity is: 7.5) - autoclosed #557

Closed mend-for-github-com[bot] closed 2 weeks ago

mend-for-github-com[bot] commented 1 month ago
Vulnerable Library - nifi-expression-language-1.15.0-SNAPSHOT.jar

Path to vulnerable library: /home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (nifi-expression-language version) Remediation Possible** Reachability
CVE-2023-1370 High 7.5 detected in multiple dependencies Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2023-1370 ### Vulnerable Libraries - json-smart-2.4.7.jar, json-smart-2.3.1.jar

### json-smart-2.4.7.jar

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

Library home page: https://urielch.github.io/

Path to dependency file: /nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services-nar/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar

Dependency Hierarchy: - nifi-expression-language-1.15.0-SNAPSHOT.jar (Root Library) - json-path-2.6.0.jar - :x: **json-smart-2.4.7.jar** (Vulnerable Library) ### json-smart-2.3.1.jar

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

Library home page: https://urielch.github.io/

Path to dependency file: /nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-authorizer/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar,/home/wss-scanner/.m2/repository/net/minidev/json-smart/2.3.1/json-smart-2.3.1.jar

Dependency Hierarchy: - nifi-expression-language-1.15.0-SNAPSHOT.jar (Root Library) - json-path-2.6.0.jar - :x: **json-smart-2.3.1.jar** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

[Json-smart](https://netplex.github.io/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.

Publish Date: 2023-03-13

URL: CVE-2023-1370

### CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/

Release Date: 2023-03-22

Fix Resolution: net.minidev:json-smart:2.4.9

mend-for-github-com[bot] commented 2 weeks ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.