cve.bz

CVE-2022-4065 testng project testng: Path traversal

7.8 highExploit referenceEPSS 1.2%Fix available

High (7.8) in testng project testng. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.testng:testng 7.5.1, 7.7.0.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.2% (up from 1.0% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-4065 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-4065?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-4065?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-4065 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cbeust testng7.5.0
cbeust testng7.6.0
cbeust testng7.6.1
cbeust testng7.7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rc2q-x9mf-w3vfMavenorg.testng:testng>=6.13 <7.5.17.5.1
GHSA-rc2q-x9mf-w3vfMavenorg.testng:testng>=7.6.0 <7.7.07.7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 6 moretestngno fix listedUBUNTU-CVE-2022-4065
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 moretestng7.4.0-150200.3.7.1SUSE-SU-2023:1690-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 10 moretestng7.10.1-150200.3.10.1SUSE-SU-2024:2568-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 11 moresnakeyaml2.2-150200.3.15.1SUSE-SU-2024:2568-1
SUSELinux Enterprise Module for Package Hub 15 SP6mockito5.11.0-150200.3.7.1SUSE-SU-2024:2568-1
openSUSELeap 15.4testng7.4.0-150200.3.7.1SUSE-SU-2023:1690-1
openSUSELeap 15.5, Leap 15.6mockito5.11.0-150200.3.7.1SUSE-SU-2024:2568-1
openSUSELeap 15.5, Leap 15.6snakeyaml2.2-150200.3.15.1SUSE-SU-2024:2568-1
openSUSELeap 15.5, Leap 15.6testng7.10.1-150200.3.10.1SUSE-SU-2024:2568-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7testngOut of support scope
Red Hat Software Collectionsrh-maven36-testngOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-4065.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON