CVE-2022-4065cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | testng | Fix pending | UBUNTU-CVE-2022-4065 | |
| Ubuntu 26.04 | testng | Under investigation | UBUNTU-CVE-2022-4065 | |
| Ubuntu 25.10 | testng | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-4065 | |
| Ubuntu 24.04 | testng | Under investigation | UBUNTU-CVE-2022-4065 | |
| Ubuntu 22.04 | testng | Under investigation | UBUNTU-CVE-2022-4065 | |
| Ubuntu 20.04 | testng | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-4065 | |
| Ubuntu 18.04 | testng | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-4065 | |
| Ubuntu 16.04 | testng | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-4065 | |
| Ubuntu 14.04 | testng | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-4065 | |
| Red Hat Enterprise Linux 7 | testng | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | testng-javadoc | Will not fix Out of support scope | ||
| Maven library | org.testng:testng | Fixed | 7.7.0 | GHSA-rc2q-x9mf-w3vf |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cbeust testng: affected: 7.5.0, 7.6.0, 7.6.1, 7.7.0
Vendor advisories:
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b (patch)
- https://github.com/cbeust/testng/releases/tag/7.7.1 (patch)
References
- https://vuldb.com/?id.214027
- https://vuldb.com/?ctiid.214027
- https://github.com/cbeust/testng/pull/2806
- https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b
- https://github.com/cbeust/testng/releases/tag/7.7.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.