{"id":"UBUNTU-CVE-2022-39243","details":"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.","modified":"2026-05-20T16:08:13.617398296Z","published":"2022-09-26T14:15:00Z","upstream":["CVE-2022-39243"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-39243"},{"type":"REPORT","url":"https://github.com/brettwooldridge/NuProcess/commit/29bc09de561bf00ff9bf77123756363a9709f868"},{"type":"REPORT","url":"https://github.com/brettwooldridge/NuProcess/security/advisories/GHSA-cxgf-v2p8-7ph7"},{"type":"REPORT","url":"https://github.com/brettwooldridge/NuProcess/pull/143"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-39243"}],"affected":[{"package":{"name":"watchman","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/watchman?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-2","4.9.0-3","4.9.0-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.9.0-3build1","binary_name":"python3-pywatchman"},{"binary_name":"watchman","binary_version":"4.9.0-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"}},{"package":{"name":"watchman","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/watchman?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-5build1","4.9.0-5build2","4.9.0-6","4.9.0-6build1","4.9.0-6build2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.9.0-6build2","binary_name":"python3-pywatchman"},{"binary_version":"4.9.0-6build2","binary_name":"watchman"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"}},{"package":{"name":"watchman","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/watchman?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-7build1","4.9.0-7build2","4.9.0-7build3","4.9.0-7build4"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pywatchman","binary_version":"4.9.0-7build4"},{"binary_name":"watchman","binary_version":"4.9.0-7build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"}},{"package":{"name":"watchman","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/watchman?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-8build1","4.9.0-9"],"ecosystem_specific":{"binaries":[{"binary_version":"4.9.0-9","binary_name":"python3-pywatchman"},{"binary_name":"watchman","binary_version":"4.9.0-9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"}},{"package":{"name":"watchman","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/watchman?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-9","4.9.0-9build1","4.9.0-9build2","4.9.0-9build3"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pywatchman","binary_version":"4.9.0-9build3"},{"binary_name":"watchman","binary_version":"4.9.0-9build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-39243.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}