cbeust testng XML File Parser JarFileUtils.java testngXmlExistsInJar path traversal
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cbeust | testng | 7.5.0; 7.6.0; 7.6.1; 7.7.0 | — | No fix listed | CNA |
| — | org.testng:testng (Maven) | 6.13 to before 7.5.1 | 7.5.1 | Patch available | GHSA-rc2q-x9mf-w3vf |
| — | org.testng:testng (Maven) | 7.6.0 to before 7.7.0 | 7.7.0 | Patch available | GHSA-rc2q-x9mf-w3vf |
- testng Vendorcbeust Affected 7.5.0; 7.6.0; 7.6.1; 7.7.0 Fixed in — No fix listed CNA
- org.testng:testng (Maven) Vendor— Affected 6.13 to before 7.5.1 Fixed in 7.5.1 Patch available GHSA-rc2q-x9mf-w3vf
- org.testng:testng (Maven) Vendor— Affected 7.6.0 to before 7.7.0 Fixed in 7.7.0 Patch available GHSA-rc2q-x9mf-w3vf
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:testng_project:testng:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Testng Project |
- cpe:2.3:a:testng_project:testng:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Testng Project
Remediation
- Fix · GHSA-rc2q-x9mf-w3vf org.testng:testng (Maven) Fixed in 7.5.1 Advisory →
- Fix · GHSA-rc2q-x9mf-w3vf org.testng:testng (Maven) Fixed in 7.7.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Software Collections | Affected | No fix planned: Out of support scope |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-4065
- 2026-10-03 Alias added: GHSA-rc2q-x9mf-w3vf
References
Patch 2
Sources
- CVE-2022-4065 · CVE Program
- CVE-2022-4065 · NVD
- FIRST EPSS
- GHSA-rc2q-x9mf-w3vf · GitHub Advisory Database · CC BY 4.0
- CVE-2022-4065 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences