CVEfocus › CVE database › CVE-2022-4065

CVE-2022-4065cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal

CVSS 5.5 MediumEPSS 1.2% (higher than 69% of CVEs)Published 2022-11-19Updated 2024-08-03Assigner: VulDB

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.

CWE-22

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

1Fixed
1Fix pending
3Under investigation
7Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10testngFix pendingUBUNTU-CVE-2022-4065
Ubuntu 26.04testngUnder investigationUBUNTU-CVE-2022-4065
Ubuntu 25.10testngWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-4065
Ubuntu 24.04testngUnder investigationUBUNTU-CVE-2022-4065
Ubuntu 22.04testngUnder investigationUBUNTU-CVE-2022-4065
Ubuntu 20.04testngWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-4065
Ubuntu 18.04testngWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-4065
Ubuntu 16.04testngWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-4065
Ubuntu 14.04testngWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-4065
Red Hat Enterprise Linux 7testngWill not fix
Out of support scope
Red Hat Enterprise Linux 7testng-javadocWill not fix
Out of support scope
Maven libraryorg.testng:testngFixed7.7.0GHSA-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.

Vendor advisories:

References

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.