Skip to content

← Public intelligence

Maven package

org.testng:testng

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.8MavenPublished

    TestNG is vulnerable to Path Traversal

    CVE-2022-4065 · GHSA-rc2q-x9mf-w3vf

    Affected
    • Maven org.testng:testng >= 6.13, < 7.5.1; >= 7.6.0, < 7.7.0
    Fixed in
    7.5.17.7.0· Vendor fix available
    Issue
    Impact 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 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. Patches A patch is available in version 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. A backport of the fix is available in version 7.5.1 for Java 8 projects. Workaround Specify which tests to run when invoking TestNG by configuring them on the CLI or in the build tool controlling the run. Do not run tests with untrusted JARs on the classpath, this includes pull requests on open source projects.

    Recommended action: Upgrade to 7.7.0 or 7.5.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →