CVE-2022-39243
CRITICAL 9.8CVSS 3.1NuProcess vulnerable to command-line injection through insertion of NUL character(s)
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.
- Published
- 26 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-77
- Also known as
- GHSA-cxgf-v2p8-7ph7
- Sources
- NVDJSONOSV GHSA-cxgf-v2p8-7ph7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nuprocess_project | nuprocesscpe:2.3:a:nuprocess_project:nuprocess:*:*:*:*:*:*:*:* |
>= 1.2.0, < 2.0.5 | 2.0.5 |
| OSV | Maven | com.zaxxer:nuprocess | >= 1.2.0, < 2.0.5 | 2.0.5 |
References
- https://github.com/brettwooldridge/NuProcess/commit/29bc09de561bf00ff9bf77123756363a9709f868 · Patch, Third Party Advisory, WEB
- https://github.com/brettwooldridge/NuProcess/pull/143 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/brettwooldridge/NuProcess/security/advisories/GHSA-cxgf-v2p8-7ph7 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39243 · ADVISORY
- https://github.com/brettwooldridge/NuProcess · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Sep 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 30 Sep 2022)