Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882075 (CVE-2022-4065) - dev-java/testng: zip slip vulnerability
Summary: dev-java/testng: zip slip vulnerability
Status: RESOLVED INVALID
Alias: CVE-2022-4065
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://github.com/cbeust/testng/pull...
Whiteboard: B4 [ebuild]
Keywords:
Depends on: testng-7.7.1-deps
Blocks:
  Show dependency tree
 
Reported: 2022-11-20 03:03 UTC by John Helmert III
Modified: 2023-06-18 23:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-11-20 03:03:17 UTC
CVE-2022-4065:

A vulnerability was found in cbeust testng. 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. The name of the patch is 9150736cd2c123a6a3b60e6193630859f9f0422b. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-214027.

Patch: https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b

Only 4 since it seems rather unlikely to be exploitable.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-26 18:09:45 UTC
Fix is in 7.7.0.
Comment 2 Volkmar W. Pogatzki 2023-06-12 07:32:36 UTC
(In reply to John Helmert III from comment #0)
> CVE-2022-4065:
> 
> A vulnerability was found in cbeust testng. 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. [...]

Gentoo stucks on version 6.9.10 which does not seem to have "JarFileUtils.java".
Are we still vulnertable?
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-06-18 23:03:23 UTC
Ah, you're right, maybe not.