Skip to content

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

CriticalCVSS 9.8 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
Ubuntu

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.

Upgrade path

9 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/watchman(Ubuntu 20.04) = 4.9.0-2; = 4.9.0-3; = 4.9.0-3build1; All versions No fix listed No fix yet
ubuntu/watchman(Ubuntu 22.04) = 4.9.0-5build1; = 4.9.0-5build2; = 4.9.0-6; = 4.9.0-6build1 +2 more No fix listed No fix yet
ubuntu/watchman(Ubuntu 24.04) = 4.9.0-7build1; = 4.9.0-7build2; = 4.9.0-7build3; = 4.9.0-7build4 +1 more No fix listed No fix yet
ubuntu/watchman(Ubuntu 25.10) = 4.9.0-8build1; = 4.9.0-9; All versions No fix listed No fix yet
ubuntu/watchman(Ubuntu 26.04) = 4.9.0-9; = 4.9.0-9build1; = 4.9.0-9build2; = 4.9.0-9build3 +1 more No fix listed No fix yet
ubuntu/watchman(Ubuntu 26.10) = 4.9.0-9build3; = 4.9.0-9build4; All versions No fix listed No fix yet
com.zaxxer/nuprocess(Maven) = 1.2.0; = 1.2.1; = 1.2.2; = 1.2.3 +9 more 2.0.5 Fixed
nuprocess project nuprocess >= 1.2.0, < 2.0.5 2.0.5 Fixed
brettwooldridge NuProcess = >= 1.2.0, < 2.0.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
com.zaxxer/nuprocess(Maven) >= 1.2.0, < 2.0.5 2.0.5
com.zaxxer/nuprocess(Maven) = 1.2.0 No fix listed
com.zaxxer/nuprocess(Maven) = 1.2.1 No fix listed
com.zaxxer/nuprocess(Maven) = 1.2.2 No fix listed
com.zaxxer/nuprocess(Maven) = 1.2.3 No fix listed
com.zaxxer/nuprocess(Maven) = 1.2.4 No fix listed
com.zaxxer/nuprocess(Maven) = 1.2.5 No fix listed
com.zaxxer/nuprocess(Maven) = 1.2.6 No fix listed
com.zaxxer/nuprocess(Maven) = 2.0.0 No fix listed
com.zaxxer/nuprocess(Maven) = 2.0.1 No fix listed
com.zaxxer/nuprocess(Maven) = 2.0.2 No fix listed
com.zaxxer/nuprocess(Maven) = 2.0.3 No fix listed
com.zaxxer/nuprocess(Maven) = 2.0.4 No fix listed
brettwooldridge NuProcess = >= 1.2.0, < 2.0.5 No fix listed
ubuntu/watchman(Ubuntu:22.04) All versions No fix listed
nuprocess project nuprocess >= 1.2.0, < 2.0.5 2.0.5
ubuntu/watchman(Ubuntu:24.04) All versions No fix listed
ubuntu/watchman(Ubuntu:26.04) All versions No fix listed
ubuntu/watchman(Ubuntu:26.10) All versions No fix listed
ubuntu/watchman(Ubuntu:20.04) All versions No fix listed
ubuntu/watchman(Ubuntu:20.04) = 4.9.0-2 No fix listed
ubuntu/watchman(Ubuntu:20.04) = 4.9.0-3 No fix listed
ubuntu/watchman(Ubuntu:20.04) = 4.9.0-3build1 No fix listed
ubuntu/watchman(Ubuntu:22.04) = 4.9.0-5build1 No fix listed
ubuntu/watchman(Ubuntu:22.04) = 4.9.0-5build2 No fix listed
Show 16 more
ProductAffected versionsFixed in
ubuntu/watchman(Ubuntu:22.04) = 4.9.0-6 No fix listed
ubuntu/watchman(Ubuntu:22.04) = 4.9.0-6build1 No fix listed
ubuntu/watchman(Ubuntu:22.04) = 4.9.0-6build2 No fix listed
ubuntu/watchman(Ubuntu:24.04) = 4.9.0-7build1 No fix listed
ubuntu/watchman(Ubuntu:24.04) = 4.9.0-7build2 No fix listed
ubuntu/watchman(Ubuntu:24.04) = 4.9.0-7build3 No fix listed
ubuntu/watchman(Ubuntu:24.04) = 4.9.0-7build4 No fix listed
ubuntu/watchman(Ubuntu:25.10) All versions No fix listed
ubuntu/watchman(Ubuntu:25.10) = 4.9.0-8build1 No fix listed
ubuntu/watchman(Ubuntu:25.10) = 4.9.0-9 No fix listed
ubuntu/watchman(Ubuntu:26.10) = 4.9.0-9build3 No fix listed
ubuntu/watchman(Ubuntu:26.10) = 4.9.0-9build4 No fix listed
ubuntu/watchman(Ubuntu:26.04) = 4.9.0-9 No fix listed
ubuntu/watchman(Ubuntu:26.04) = 4.9.0-9build1 No fix listed
ubuntu/watchman(Ubuntu:26.04) = 4.9.0-9build2 No fix listed
ubuntu/watchman(Ubuntu:26.04) = 4.9.0-9build3 No fix listed

References