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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.testng:testng | 7.5.1 | GHSA-rc2q-x9mf-w3vf |
| Maven | org.testng:testng | 7.7.0 | GHSA-rc2q-x9mf-w3vf |
| Ubuntu:22.04:LTS | testng | no fix listed | UBUNTU-CVE-2022-4065 |
| Ubuntu:24.04:LTS | testng | no fix listed | UBUNTU-CVE-2022-4065 |
| Ubuntu:25.10 | testng | no fix listed | UBUNTU-CVE-2022-4065 |
| Ubuntu:26.04:LTS | testng | no fix listed | UBUNTU-CVE-2022-4065 |
| Ubuntu:26.10 | testng | no fix listed | UBUNTU-CVE-2022-4065 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
References
- https://vuldb.com/?id.214027 vdb-entry, technical-description
- https://vuldb.com/?ctiid.214027 signature, permissions-required
- https://github.com/cbeust/testng/pull/2806 issue-tracking
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b patch
- https://github.com/cbeust/testng/releases/tag/7.7.1 patch