CVE-2022-4065
HIGH 7.8CVSS 3.1TestNG is vulnerable to Path Traversal
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.
- Published
- 19 Nov 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-rc2q-x9mf-w3vf
- Sources
- NVDJSONOSV GHSA-rc2q-x9mf-w3vfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | testng_project | testngcpe:2.3:a:testng_project:testng:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Maven | org.testng:testng | >= 6.13, < 7.5.1 | 7.5.1 |
| OSV | Maven | org.testng:testng | >= 7.6.0, < 7.7.0 | 7.7.0 |
References
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b · Patch, Third Party Advisory, WEB
- https://github.com/cbeust/testng/pull/2806 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/cbeust/testng/releases/tag/7.7.1 · WEB
- https://vuldb.com/?ctiid.214027 · WEB
- https://vuldb.com/?id.214027 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4065 · ADVISORY
- https://github.com/cbeust/testng/pull/1596 · WEB
- https://github.com/testng-team/testng/pull/2899 · WEB
- https://github.com/cbeust/testng · PACKAGE
- https://github.com/cbeust/testng/releases/tag/7.7.0 · WEB
- https://github.com/testng-team/testng/releases/tag/7.5.1 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 19 Nov 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Nov 2022)