{"id":"UBUNTU-CVE-2022-4065","details":"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.","modified":"2026-10-17T12:55:59.229657762Z","published":"2022-11-19T19:15:00Z","upstream":["CVE-2022-4065"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-4065"},{"type":"REPORT","url":"https://github.com/cbeust/testng/pull/2806"},{"type":"REPORT","url":"https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-4065"}],"affected":[{"package":{"name":"testng","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.11+dfsg-3build1","6.8.7-2"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.8.7-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.9.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-2","6.9.12-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.9.12-2ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-4"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.9.12-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-4"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.9.12-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-4"],"ecosystem_specific":{"binaries":[{"binary_version":"6.9.12-4","binary_name":"testng"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/testng?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-4"],"ecosystem_specific":{"binaries":[{"binary_version":"6.9.12-4","binary_name":"testng"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/testng?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-5"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.9.12-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}},{"package":{"name":"testng","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/testng?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.12-4","6.9.12-5"],"ecosystem_specific":{"binaries":[{"binary_name":"testng","binary_version":"6.9.12-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4065.json"}}],"schema_version":"1.9.0","severity":[{"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"}]}