CVE-2022-4065

Public Exploit
cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal

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.

Category

5.5
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.28%
Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory vuldb.com
Affected: cbeust testng
Published at:
Updated at:

References

Link Tags
https://vuldb.com/?id.214027 vdb entry third party advisory technical description
https://vuldb.com/?ctiid.214027 permissions required signature
https://github.com/cbeust/testng/pull/2806 issue tracking exploit third party advisory patch
https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b third party advisory patch
https://github.com/cbeust/testng/releases/tag/7.7.1 patch

Frequently Asked Questions

What is the severity of CVE-2022-4065?
CVE-2022-4065 has been scored as a medium severity vulnerability.
How to fix CVE-2022-4065?
To fix CVE-2022-4065, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-4065 being actively exploited in the wild?
It is possible that CVE-2022-4065 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-4065?
CVE-2022-4065 affects cbeust testng.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.