testng — security advisory
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.
- Products
- testng
- Affected versions
- 5.11+dfsg-3build1, 6.8.7-2, 6.9.12-2, 6.9.12-2ubuntu1, 6.9.12-4, 6.9.12-5, 6.9.5-1
- Fixed versions
- Not specified
- CVEs
- CVE-2022-4065
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:43 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-4065
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
testng
Fixed versions: Not specified
Complete source record
{
"id": "4fab0211cf6b69a110df8f2cdec145cd44eeec312afdfc2b56796b094eb9d221",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-4065",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-4065",
"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.",
"evidence": "osv:UBUNTU-CVE-2022-4065",
"products": [
{
"name": {
"value": "testng",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.11+dfsg-3build1",
"evidence": "/affected/0/versions"
},
{
"value": "6.8.7-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.5-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-2",
"evidence": "/affected/2/versions"
},
{
"value": "6.9.12-2ubuntu1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-4",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-4",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-4",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-5",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "testng",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.9.12-4",
"evidence": "/affected/8/versions"
},
{
"value": "6.9.12-5",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2022-4065",
"aliases": [
"UBUNTU-CVE-2022-4065"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"versions": [
"5.11+dfsg-3build1",
"6.8.7-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.8.7-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"6.9.5-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.5-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"6.9.12-2",
"6.9.12-2ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-2ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"6.9.12-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"6.9.12-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"6.9.12-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"6.9.12-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"6.9.12-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "testng",
"purl": "pkg:deb/ubuntu/testng?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"6.9.12-4",
"6.9.12-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "testng",
"binary_version": "6.9.12-5"
}
]
}
}
],
"modified": "2026-10-17T12:55:59.229657762Z",
"provider": "osv",
"upstream": [
"CVE-2022-4065"
],
"references": [
"https://ubuntu.com/security/CVE-2022-4065",
"https://github.com/cbeust/testng/pull/2806",
"https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b",
"https://www.cve.org/CVERecord?id=CVE-2022-4065"
]
},
"related_cves": [
{
"value": "CVE-2022-4065",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 354477,
"published_at": "2022-11-19T19:15:00+00:00"
}