OESA-2024-1072 (CVE-2022-4065)

Vulnerability from osv_openeuler – Published: 2024-01-12 11:06 – Updated: 2026-08-06 11:06 – Source website
VLAI
Summary
testng security update
Details

TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionality that make it more powerful and easier to use, such as: * Annotations. * Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc...). * Test that your code is multithread safe. * Flexible test configuration. * Support for data-driven testing (with @DataProvider). * Support for parameters. * Powerful execution model (no more TestSuite). * Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...). * Embeds BeanShell for further flexibility. * Default JDK functions for runtime and logging (no dependencies). * Dependent methods for application server testing.

Security Fix(es):

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.(CVE-2022-4065)


{
  "affected": [
    {
      "ecosystem_specific": {
        "noarch": [
          "testng-javadoc-6.14.3-7.oe1.noarch.rpm",
          "testng-6.14.3-7.oe1.noarch.rpm"
        ],
        "src": [
          "testng-6.14.3-7.oe1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "testng",
        "purl": "pkg:rpm/openEuler/testng\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.14.3-7.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "testng-6.14.3-7.oe2003sp4.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2003sp4.noarch.rpm"
        ],
        "src": [
          "testng-6.14.3-7.oe2003sp4.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP4",
        "name": "testng",
        "purl": "pkg:rpm/openEuler/testng\u0026distro=openEuler-20.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.14.3-7.oe2003sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "testng-javadoc-6.14.3-7.oe2203.noarch.rpm",
          "testng-6.14.3-7.oe2203.noarch.rpm",
          "testng-6.14.3-7.oe2203sp1.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2203sp1.noarch.rpm",
          "testng-6.14.3-7.oe2203sp2.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2203sp2.noarch.rpm",
          "testng-6.14.3-7.oe2203sp3.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2203sp3.noarch.rpm"
        ],
        "src": [
          "testng-6.14.3-7.oe2203.src.rpm",
          "testng-6.14.3-7.oe2203sp1.src.rpm",
          "testng-6.14.3-7.oe2203sp2.src.rpm",
          "testng-6.14.3-7.oe2203sp3.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS",
        "name": "testng",
        "purl": "pkg:rpm/openEuler/testng\u0026distro=openEuler-22.03-LTS"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.14.3-7.oe2203sp3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "testng-6.14.3-7.oe2203sp1.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2203sp1.noarch.rpm"
        ],
        "src": [
          "testng-6.14.3-7.oe2203sp1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP1",
        "name": "testng",
        "purl": "pkg:rpm/openEuler/testng\u0026distro=openEuler-22.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.14.3-7.oe2203sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "testng-6.14.3-7.oe2203sp2.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2203sp2.noarch.rpm"
        ],
        "src": [
          "testng-6.14.3-7.oe2203sp2.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP2",
        "name": "testng",
        "purl": "pkg:rpm/openEuler/testng\u0026distro=openEuler-22.03-LTS-SP2"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.14.3-7.oe2203sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "testng-6.14.3-7.oe2203sp3.noarch.rpm",
          "testng-javadoc-6.14.3-7.oe2203sp3.noarch.rpm"
        ],
        "src": [
          "testng-6.14.3-7.oe2203sp3.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP3",
        "name": "testng",
        "purl": "pkg:rpm/openEuler/testng\u0026distro=openEuler-22.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.14.3-7.oe2203sp3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionality that make it more powerful and easier to use, such as:   * Annotations.   * Run your tests in arbitrarily big thread pools with various policies     available (all methods in their own thread, one thread per test class, etc...).   * Test that your code is multithread safe.   * Flexible test configuration.   * Support for data-driven testing (with @DataProvider).   * Support for parameters.   * Powerful execution model (no more TestSuite).   * Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).   * Embeds BeanShell for further flexibility.   * Default JDK functions for runtime and logging (no dependencies).   * Dependent methods for application server testing.\r\n\r\nSecurity Fix(es):\r\n\r\nA 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.(CVE-2022-4065)",
  "id": "OESA-2024-1072",
  "modified": "2026-08-06T11:06:31Z",
  "published": "2024-01-12T11:06:31Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1072"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-4065"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "testng security update",
  "upstream": [
    "CVE-2022-4065"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…