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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2022-11-1919:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.x | ≥ 7.6.0, < 7.7.0 | 7.7.0 | OSV |
| 7.5 | ≥ 6.13, < 7.5.1 | 7.5.1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
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
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
Fix
- Update testng to 7.7.0 · 7.5.1
- No fix planned, says the vendor Red Hat Product Security CVE-2022-4065 · 4 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01shoucheng3/testng-team__testng_CVE-2022-4065_7-5
- 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
- EUVD-2022-7421same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-rc2q-x9mf-w3vfsame flawGitHub Advisory Database · CC-BY-4.0
- MGASA-2023-0220advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-1072advisory covering several CVEsopenEuler · LicenseRef-unstated
- SUSE-SU-2023:1690-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:2568-1advisory covering several CVEsSUSE · LicenseRef-unstated
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?
Is CVE-2022-4065 actively exploited?
What is the CVSS score for CVE-2022-4065?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-rc2q-x9mf-w3vf
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0