Skip to main content
Public proof of conceptFix available

CVE-2022-4065

A public proof of concept exists; no exploitation attested.

  • Published2022-11-19
  • Fixed in7.7.0 · 7.5.1
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-11-1919:15CVE publishedNVD

Versions per branch

OSV · NVD
testng
BranchAffectedFixed in
7.x≥ 7.6.0, < 7.7.07.7.0
7.5≥ 6.13, < 7.5.17.5.1
Testng project testng
BranchAffectedFixed in
—all versionsno fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • gradleCleanStartall versions · fixed in 7.6.6-r1
  • mockitoSUSE:Linux Enterprise Module for Package Hub 15 SP6all versions · fixed in 5.11.0-150200.3.7.1
  • mockitoopenSUSE:Leap 15.6all versions · fixed in 5.11.0-150200.3.7.1
  • mockitoopenSUSE:Leap 15.5all versions · fixed in 5.11.0-150200.3.7.1
  • snakeyamlSUSE:Manager Server Module 4.3all versions · fixed in 2.2-150200.3.15.1
  • snakeyamlSUSE:Linux Enterprise Server for SAP Applications 15 SP4all versions · fixed in 2.2-150200.3.15.1
  • snakeyamlSUSE:Linux Enterprise Server for SAP Applications 15 SP3all versions · fixed in 2.2-150200.3.15.1
  • snakeyamlSUSE:Linux Enterprise Server for SAP Applications 15 SP2all versions · fixed in 2.2-150200.3.15.1

55 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-4065 Red Hat Product Security4 known affected

    testng: a path traversal in zip files

    testng-javadoc as a component of Red Hat Enterprise Linux 7 · testng.src as a component of Red Hat Enterprise Linux 7 · rh-maven36-testng-javadoc as a component of Red Hat Software Collections · +1 more

Full record on NVD

Fix

  1. Update testng to 7.7.0 · 7.5.1
  2. No fix planned, says the vendor Red Hat Product Security CVE-2022-4065 · 4 productsOut of support scope

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.15.5known since 2026-10-23
  • NVDCVSS 3.17.8read 2026-10-23
  • CNACVSS 2.06.5known since 2026-10-23
  • CNAweakness (CWE)CWE-22known since 2026-10-23
  • FIRST EPSSEPSS score1.2 %2026-11-18
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-12-02

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2022-11-19
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-rc2q-x9mf-w3vf

Frequently asked questions

What is CVE-2022-4065?

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.

Is CVE-2022-4065 actively exploited?

Active exploitation of CVE-2022-4065 has not been confirmed. Its EPSS score was 1.2% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-4065?

CVE-2022-4065 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running testng? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record