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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cbeust | testng | 7.5.0, 7.6.0, 7.6.1, 7.7.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | testng | No fix yet | — |
| Ubuntu 26.04 LTS | testng | No fix yet | — |
| Ubuntu 25.10 | testng | No fix yet | — |
| Ubuntu 24.04 LTS | testng | No fix yet | — |
| Ubuntu 22.04 LTS | testng | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | testng | No fix yet | — |
| Ubuntu 18.04 LTS | testng | No fix yet | — |
| Ubuntu 16.04 LTS | testng | No fix yet | — |
| Ubuntu 14.04 LTS | testng | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | mockito | 5.11.0-150200.3.7.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP6 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP6 | testng | 7.10.1-150200.3.10.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP5 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP5 | testng | 7.10.1-150200.3.10.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP4 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP4 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SLES 15 SP3 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP3 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SLES 15 SP2 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES 15 SP2 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP4 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES for SAP 15 SP4 | testng | 7.10.1-150200.3.10.1 | SUSE-SU-2024:2568-1 |
| SLES for SAP 15 SP3 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES for SAP 15 SP3 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SLES for SAP 15 SP2 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLES for SAP 15 SP2 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SLE Real Time 15 SP3 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2023:1690-1 |
| SLE HPC 15 SP4 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLE HPC 15 SP4 | testng | 7.10.1-150200.3.10.1 | SUSE-SU-2024:2568-1 |
| SLE HPC 15 SP3 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLE HPC 15 SP3 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SLE HPC 15 SP2 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SLE HPC 15 SP2 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SUSE Manager Server Module 4.3 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SUSE Enterprise Storage 7.1 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| SUSE Enterprise Storage 7.1 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2024:2568-1, SUSE-SU-2023:1690-1 |
| SUSE Enterprise Storage 7 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2023:1690-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.6 | mockito | 5.11.0-150200.3.7.1 | SUSE-SU-2024:2568-1 |
| openSUSE Leap 15.6 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| openSUSE Leap 15.6 | testng | 7.10.1-150200.3.10.1 | SUSE-SU-2024:2568-1 |
| openSUSE Leap 15.5 | mockito | 5.11.0-150200.3.7.1 | SUSE-SU-2024:2568-1 |
| openSUSE Leap 15.5 | snakeyaml | 2.2-150200.3.15.1 | SUSE-SU-2024:2568-1 |
| openSUSE Leap 15.5 | testng | 7.10.1-150200.3.10.1 | SUSE-SU-2024:2568-1 |
| openSUSE Leap 15.4 | testng | 7.4.0-150200.3.7.1 | SUSE-SU-2023:1690-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
shoucheng3/testng-team__testng_CVE-2022-4065_7-5 ★ 0 · Aug 17, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.testng:testng | >= 6.13, < 7.5.1 | 7.5.1 | GHSA-rc2q-x9mf-w3vf |
| Maven | org.testng:testng | >= 7.6.0, < 7.7.0 | 7.7.0 | GHSA-rc2q-x9mf-w3vf |
Advisories 2
- SUSE-SU-2024:2568-1 Security update for mockito, snakeyaml, testng SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:1690-1 Security update for testng SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://vuldb.com/?id.214027 vdb-entry technical-description
- https://vuldb.com/?ctiid.214027 signature permissions-required
- https://github.com/cbeust/testng/pull/2806 issue-tracking
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b patch
- https://github.com/cbeust/testng/releases/tag/7.7.1 patch