{"answers":{"affected":"2 open source packages ship an affected version, including com.zaxxer:nuprocess. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39243 exists.","fix":"Upgrade com.zaxxer:nuprocess to 2.0.5 or later.","what":"CVE-2022-39243 is a high-severity command injection vulnerability in brettwooldridge NuProcess, published on 26 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-39243 and fix it if it is affected.\n\nWhat it is: CVE-2022-39243 is a high-severity command injection vulnerability in brettwooldridge NuProcess, published on 26 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39243 exists.\n\nAffected packages and fixed versions:\n- com.zaxxer:nuprocess (Maven): affected from 1.2.0; fixed in 2.0.5\n- com.zaxxer:nuprocess (Maven): affected from 1.2.0; fixed in 2.0.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-39243/ (Markdown: https://insights.sbomify.com/CVE-2022-39243/index.md)","id":"CVE-2022-39243","markdown":"https://insights.sbomify.com/CVE-2022-39243/index.md","name":"CVE-2022-39243","record":{"aliases":["GHSA-cxgf-v2p8-7ph7","UBUNTU-CVE-2022-39243"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java process library","requires_auth":"none","summary":"Attackers can inject command-line arguments via NUL characters in NuProcess, potentially leading to code execution on Linux systems.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nuprocess","vendor":"nuprocess_project"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"NuProcess vulnerable to command-line injection through insertion of NUL character(s)","id":"CVE-2022-39243","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":2,"n_references":3,"next":{"headline":"Buffer overflow in pjlib scanner and pjmedia","id":"CVE-2022-39244"},"packages":[{"ecosystem":"Maven","fixed":["2.0.5"],"introduced":["1.2.0"],"last_affected":[],"package":"com.zaxxer:nuprocess","purl":null,"source":"GHSA-cxgf-v2p8-7ph7"},{"ecosystem":"Maven","fixed":["2.0.5"],"introduced":["1.2.0"],"last_affected":[],"package":"com.zaxxer:nuprocess","purl":"pkg:maven/com.zaxxer/nuprocess","source":"GHSA-cxgf-v2p8-7ph7"}],"prev":{"headline":"Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices","id":"CVE-2022-39242"},"products":["NuProcess"],"published":"2022-09-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["brettwooldridge"]},"summary":"Attackers can inject command-line arguments via NUL characters in NuProcess, potentially leading to code execution on Linux systems.","url":"https://insights.sbomify.com/CVE-2022-39243/"}