Directory Traversal Affecting testng package, versions *


Severity

Recommended
medium

Based on CentOS security rating.

Threat Intelligence

EPSS
0.28% (51st 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS7-TESTNG-5416665
  • published8 Apr 2023
  • disclosed19 Nov 2022

Introduced: 19 Nov 2022

CVE-2022-4065  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

There is no fixed version for Centos:7 testng.

NVD Description

Note: Versions mentioned in the description apply only to the upstream testng package and not the testng package as distributed by Centos. See How to fix? for Centos:7 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1