Vulnerability · Published Nov 19, 2022 · Assigned by VulDB

CVE-2022-4065cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal

Medium 5.5

In plain English

A medium-severity path traversal in testng from cbeust. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)1.0%top 38.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.testng:testng7.5.1GHSA-rc2q-x9mf-w3vf
Mavenorg.testng:testng7.7.0GHSA-rc2q-x9mf-w3vf
Ubuntu:22.04:LTStestngno fix listedUBUNTU-CVE-2022-4065
Ubuntu:24.04:LTStestngno fix listedUBUNTU-CVE-2022-4065
Ubuntu:25.10testngno fix listedUBUNTU-CVE-2022-4065
Ubuntu:26.04:LTStestngno fix listedUBUNTU-CVE-2022-4065
Ubuntu:26.10testngno fix listedUBUNTU-CVE-2022-4065

Affected products (as reported)

VendorProductVersions
cbeust testng 7.5.07.6.07.6.17.7.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

References