opensearch-project / opensearch-build

🧰 OpenSearch / OpenSearch-Dashboards Build Systems
Apache License 2.0
137 stars 272 forks source link

CVE-2022-4065 (Medium) detected in testng-7.5.jar #2927

Open mend-for-github-com[bot] opened 1 year ago

mend-for-github-com[bot] commented 1 year ago

CVE-2022-4065 - Medium Severity Vulnerability

Vulnerable Library - testng-7.5.jar

Testing framework for Java

Library home page: https://testng.org

Path to dependency file: /build.gradle

Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.testng/testng/7.5/1416a607fae667c14e390b484e8d02b5824c0674/testng-7.5.jar

Dependency Hierarchy: - groovy-all-3.0.14-groovydoc.jar (Root Library) - groovy-testng-3.0.14.jar - :x: **testng-7.5.jar** (Vulnerable Library)

Found in base branch: main

Vulnerability Details

A vulnerability was found in cbeust testng 7.5.0/7.6.0/7.6.1/7.7.0. It has been declared as critical. Affected by this vulnerability is the function testngXmlExistsInJar of the file testng-core/src/main/java/org/testng/JarFileUtils.java of the component XML File Parser. The manipulation leads to path traversal. The attack can be launched remotely. Upgrading to version 7.5.1 and 7.7.1 is able to address this issue. The patch is named 9150736cd2c123a6a3b60e6193630859f9f0422b. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-214027.

Publish Date: 2022-11-19

URL: CVE-2022-4065

CVSS 3 Score Details (5.5)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2022-11-19

Fix Resolution: org.testng:testng:7.7.0

rishabh6788 commented 1 year ago

The latest version of groovy-all is 3.0.15 and still has testng-7.5 version supported.

jordarlu commented 1 year ago

Even the latest https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-testng/3.0.17 is still with testng-7.5 , if we do this https://mvnrepository.com/artifact/org.testng/testng/7.7.0 to declare using testng 7.7.0, it will cause Java compatible issue , may have to wait for the further groovy-all version from 'org.codehaus.groovy'

jordarlu commented 1 year ago

as of today, the latest groovy-all is 3.0.19 but is still vulnerable for CVE-2022-4065