Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.testng/testng
  4. ›
  5. CVE-2022-4065

CVE-2022-4065: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

November 19, 2022 (updated November 7, 2023)

A vulnerability was found in cbeust testng. 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. The name of the patch is 9150736cd2c123a6a3b60e6193630859f9f0422b. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-214027.

References

  • github.com/advisories/GHSA-rc2q-x9mf-w3vf
  • github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b
  • github.com/cbeust/testng/pull/2806
  • nvd.nist.gov/vuln/detail/CVE-2022-4065
  • vuldb.com/?id.214027

Code Behaviors & Features

Detect and mitigate CVE-2022-4065 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.13 until 7.5.1, all versions starting from 7.6.0 before 7.7.0

Fixed versions

  • 7.5.1
  • 7.7.0

Solution

Update to 7.5.1, 7.7.1 or above

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.testng/testng/CVE-2022-4065.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.