Live threats

All CVEs / Testng Project

CVE-2022-4065Testng Project Testng

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
Yes
Published
Nov 19, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Testng.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.testng:testng ≥ 6.13 < 7.5.1 7.5.1 —
Maven org.testng:testng ≥ 7.6.0 < 7.7.0 7.7.0 —

Per OSV / GitHub Advisories (GHSA-rc2q-x9mf-w3vf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
testng_projecttestngall

Official sources

References

Links published by the sources. Open them with care.