What’s Vulnerable › Vulnerabilities
CVE-2022-4065: cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-11-19 · updated 2026-06-17
- Weakness: CWE-22
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 products
- cbeust testng: all versions
References
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b
- https://github.com/cbeust/testng/pull/2806
- https://github.com/cbeust/testng/releases/tag/7.7.1
- https://vuldb.com/?ctiid.214027
- https://vuldb.com/?id.214027
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b
- https://github.com/cbeust/testng/pull/2806
- https://github.com/cbeust/testng/releases/tag/7.7.1
- https://vuldb.com/?ctiid.214027
- https://vuldb.com/?id.214027
Get alerted when CVE-2022-4065 or the next vulnerability affects your stack