PT-2022-7280

CVE-2022-4065

·

Published

2022-11-19

·

Updated

2026-11-25

Description by

CVSS 3.1
7.8
High
MetricsAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions cbeust testng versions 7.5.0 through 7.7.0
Description A critical issue affects the function testngXmlExistsInJar of the file testng-core/src/main/java/org/testng/JarFileUtils.java of the component XML File Parser, leading to path traversal. The attack can be launched remotely, potentially allowing an attacker to execute arbitrary code with a specially crafted zip file. The manipulation is limited to .xml, .yaml, and .yml files by default.
Recommendations For versions 7.5.0, 7.6.0, and 7.6.1, upgrade to version 7.5.1. For version 7.7.0, upgrade to version 7.7.1. As a temporary workaround, consider specifying which tests to run when invoking TestNG by configuring them on the CLI or in the build tool controlling the run. Do not run tests with untrusted JARs on the classpath, including pull requests on open source projects.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-RC2Q-X9MF-W3VF
CLEANSTART-2026-KQ85580
CLEANSTART-2026-QY61937
CLEANSTART-2026-WB83949
MGASA-2023-0220
OESA-2024-1072
OPENSUSE-SU-2024:12533-1
SUSE-SU-2023:1690-1
SUSE-SU-2023_1690-1
SUSE-SU-2024:2568-1
SUSE-SU-2024_2568-1
Found an issue in the description? Have something to add? Feel free to write us 👾