{"id":"CVE-2022-4065","published":"2022-11-19T00:00:00Z","modified":"2024-08-03T01:27:54Z","title":"cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal","vendor":"cbeust","product":"testng","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01205,"percentile":0.69049,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://vuldb.com/?id.214027","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.214027","tags":["signature","permissions-required"]},{"url":"https://github.com/cbeust/testng/pull/2806","tags":["issue-tracking"]},{"url":"https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b","tags":["patch"]},{"url":"https://github.com/cbeust/testng/releases/tag/7.7.1","tags":["patch"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":13.81},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"cbeust","affectedVersions":[{"vendor":"cbeust","product":"testng","versions":["7.5.0","7.6.0","7.6.1","7.7.0"]}],"affected":[{"ecosystem":"Maven","package":"org.testng:testng","vulnerableRanges":[">=6.13, <7.5.1",">=7.6.0, <7.7.0"],"patched":["7.5.1","7.7.0"],"from":["GHSA-rc2q-x9mf-w3vf"],"provenance":"source"}],"summary":{"text":"A path traversal flaw exists in the testngXmlExistsInJar function of JarFileUtils.java, within the XML File Parser component of cbeust's TestNG (testng-core) library. An attacker who can remotely supply input to that parser can manipulate file paths to reach locations outside the intended directory, and the attack requires low privileges and some user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:02Z"},"euvd":{"id":"EUVD-2022-7421","exploited":false,"provenance":"source"}}