Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.zaxxer/nuprocess
  4. ›
  5. CVE-2022-39243

CVE-2022-39243: Improper Neutralization of Special Elements used in a Command ('Command Injection')

September 26, 2022 (updated July 13, 2023)

NuProcess is an external process execution implementation for Java. In all the versions of NuProcess where it forks processes by using the JVM’s Java_java_lang_UNIXProcess_forkAndExec method (1.2.0+), attackers can use NUL characters in their strings to perform command line injection. Java’s ProcessBuilder isn’t vulnerable because of a check in ProcessBuilder.start. NuProcess is missing that check. This vulnerability can only be exploited to inject command line arguments on Linux. Version 2.0.5 contains a patch. As a workaround, users of the library can sanitize command strings to remove NUL characters prior to passing them to NuProcess for execution.

References

  • github.com/brettwooldridge/NuProcess/commit/29bc09de561bf00ff9bf77123756363a9709f868
  • github.com/brettwooldridge/NuProcess/pull/143
  • github.com/brettwooldridge/NuProcess/security/advisories/GHSA-cxgf-v2p8-7ph7
  • nvd.nist.gov/vuln/detail/CVE-2022-39243

Code Behaviors & Features

Detect and mitigate CVE-2022-39243 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.2.0 before 2.0.5

Fixed versions

  • 2.0.5

Solution

Upgrade to version 2.0.5 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

maven/com.zaxxer/nuprocess/CVE-2022-39243.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.