{"id":"CVE-2022-39243","aliases":["CVE-2022-39243","GHSA-cxgf-v2p8-7ph7"],"related":[],"kind":"vulnerability","state":"published","title":"NuProcess vulnerable to command-line injection through insertion of NUL character(s)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIn 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.\n\nThis vulnerability can only be exploited to inject command line arguments on Linux.\n- On macOS, any argument with a NUL character is truncated at that character. This means the malicious arguments are never seen by the started process.\n- On Windows, the entire command line is truncated at the first NUL character. This means the malicious arguments, and any intentional arguments provided after them, are never seen by the started process.\n\n### Patches\n2.0.5\n\n### Workarounds\nUsers of the library can sanitize command strings to remove NUL characters prior to passing them to NuProcess for execution.\n\n### References\nNone.","format":"markdown","source":"ghsa"},{"lang":"es","text":"NuProcess es una implementación de ejecución de procesos externos para Java. En todas las versiones de NuProcess en las que bifurca procesos usando el método Java_java_lang_UNIXProcess_forkAndExec de la JVM (1.2.0+), los atacantes pueden usar caracteres NUL en sus cadenas para llevar a cabo una inyección en la línea de comandos. El ProcessBuilder de Java no es vulnerable debido a una comprobación en ProcessBuilder.start. NuProcess carece de esa comprobación. Esta vulnerabilidad sólo puede ser explotada para inyectar argumentos de línea de comandos en Linux. La versión 2.0.5 contiene un parche. Como mitigación, los usuarios de la biblioteca pueden sanear las cadenas de comandos para eliminar los caracteres NUL antes de pasarlas a NuProcess para su ejecución.","source":"nvd"}],"published":"2022-09-26T13:25:11.000Z","modified":"2026-06-17T04:57:59.053Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":">= 1.2.0, < 2.0.5","status":"affected"}],"vendor":"brettwooldridge","product":"NuProcess","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.2.0","status":"affected","fixed":"2.0.5"}],"ecosystem":"Maven","package":"com.zaxxer:nuprocess","purl":"pkg:maven/com.zaxxer/nuprocess","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.2.0","fixed":"2.0.5"}],"vendor":"nuprocess_project","product":"nuprocess","cpe":"cpe:2.3:a:nuprocess_project:nuprocess:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/brettwooldridge/NuProcess/security/advisories/GHSA-cxgf-v2p8-7ph7","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/brettwooldridge/NuProcess/pull/143","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/brettwooldridge/NuProcess/commit/29bc09de561bf00ff9bf77123756363a9709f868","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39243","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/brettwooldridge/NuProcess","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:41:21.285Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39243","url":"https://www.cve.org/CVERecord?id=CVE-2022-39243","licence":"CVE Terms of Use","modified":"2025-04-22T17:20:18.073Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cxgf-v2p8-7ph7","url":"https://github.com/advisories/GHSA-cxgf-v2p8-7ph7","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:16.389Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39243","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39243","licence":"Public domain","modified":"2026-06-17T04:57:59.053Z"}],"updatedAt":"2026-11-25T22:58:15.301Z","epss":{"score":0.01594,"percentile":0.76424,"date":"2026-12-01T12:00:22.000Z"}}