Publish GHSA-rc2q-x9mf-w3vf

This commit is contained in:
advisory-database[bot]
2023-05-09 17:55:11 +00:00
parent 3edcb6d64a
commit ace1379f95
@@ -1,13 +1,13 @@
{
"schema_version": "1.4.0",
"id": "GHSA-rc2q-x9mf-w3vf",
"modified": "2023-05-01T20:10:56Z",
"modified": "2023-05-09T17:53:32Z",
"published": "2022-11-19T21:30:25Z",
"aliases": [
"CVE-2022-4065"
],
"summary": "TestNG is vulnerable to Path Traversal",
"details": "### Impact\n\nAffected 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`.\n\nThe manipulation leads to path traversal only for `.xml`, `.yaml` and `.yml` files by default. The attack implies running an unsafe test JAR. However since that JAR can also contain executable code itself, the path traversal is unlikely to be the main attack.\n\n### Patches\n\nA patch is available in [version 7.7.0](https://github.com/cbeust/testng/releases/tag/7.7.0) at commit 9150736cd2c123a6a3b60e6193630859f9f0422b. It is recommended to apply a patch to fix this issue. The patch was pushed into the master branch but no releases have yet been made with the patch included.\n\n### Workaround\n\n* Specify which tests to run when invoking TestNG by configuring them on the CLI or in the build tool controlling the run.\n* Do not run tests with untrusted JARs on the classpath, this includes pull requests on open source projects.",
"details": "### Impact\n\nAffected 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`.\n\nThe manipulation leads to path traversal only for `.xml`, `.yaml` and `.yml` files by default. The attack implies running an unsafe test JAR. However since that JAR can also contain executable code itself, the path traversal is unlikely to be the main attack.\n\n### Patches\n\nA patch is available in [version 7.7.0](https://github.com/cbeust/testng/releases/tag/7.7.0) at commit 9150736cd2c123a6a3b60e6193630859f9f0422b. It is recommended to apply a patch to fix this issue. The patch was pushed into the master branch but no releases have yet been made with the patch included.\n\nA backport of the fix is available in [version 7.5.1]((https://github.com/cbeust/testng/releases/tag/7.5.1) for Java 8 projects.\n\n### Workaround\n\n* Specify which tests to run when invoking TestNG by configuring them on the CLI or in the build tool controlling the run.\n* Do not run tests with untrusted JARs on the classpath, this includes pull requests on open source projects.",
"severity": [
{
"type": "CVSS_V3",
@@ -27,6 +27,25 @@
{
"introduced": "6.13"
},
{
"fixed": "7.5.1"
}
]
}
]
},
{
"package": {
"ecosystem": "Maven",
"name": "org.testng:testng"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.6.0"
},
{
"fixed": "7.7.0"
}
@@ -48,6 +67,10 @@
"type": "WEB",
"url": "https://github.com/cbeust/testng/pull/2806"
},
{
"type": "WEB",
"url": "https://github.com/testng-team/testng/pull/2899"
},
{
"type": "WEB",
"url": "https://github.com/cbeust/testng/commit/9150736cd2c123a6a3b60e6193630859f9f0422b"
@@ -64,6 +87,10 @@
"type": "WEB",
"url": "https://github.com/cbeust/testng/releases/tag/7.7.1"
},
{
"type": "WEB",
"url": "https://github.com/testng-team/testng/releases/tag/7.5.1"
},
{
"type": "WEB",
"url": "https://vuldb.com/?ctiid.214027"