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

- Severity: Medium 5.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-19T00:00:00.000Z
- Modified: 2026-06-17T05:19:53.443Z
- Also known as: GHSA-rc2q-x9mf-w3vf
- Weaknesses: CWE-22
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- cbeust testng: 7.5.0; 7.6.0; 7.6.1; 7.7.0
- org.testng:testng (Maven): from 6.13 before 7.5.1; from 7.6.0 before 7.7.0
- testng_project testng: no versions given

## Every score

- VulDB: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 5.5 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cbeust/testng/pull/2806> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://vuldb.com/?id.214027> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.214027> (permissions-required, signature, web)
- <https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b> (patch, third-party-advisory, web)
- <https://github.com/cbeust/testng/releases/tag/7.7.1> (patch, 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)

## Sources

- CVE List: [CVE-2022-4065](https://www.cve.org/CVERecord?id=CVE-2022-4065), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-rc2q-x9mf-w3vf](https://github.com/advisories/GHSA-rc2q-x9mf-w3vf), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-4065](https://nvd.nist.gov/vuln/detail/CVE-2022-4065), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4065 · Whole record: https://cve.day/CVE-2022-4065.json · Rebuilt by cve.day 2026-11-25T22:58:16.695Z
