{"answers":{"affected":"2 open source packages ship an affected version, including gov.nsa.emissary:emissary. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35582 exists.","fix":"Upgrade gov.nsa.emissary:emissary to 8.43.0 or later.","what":"CVE-2026-35582 is a high-severity command injection vulnerability in NationalSecurityAgency emissary, published on 18 Apr 2026. 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-2026-35582 and fix it if it is affected.\n\nWhat it is: CVE-2026-35582 is a high-severity command injection vulnerability in NationalSecurityAgency emissary, published on 18 Apr 2026. 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-2026-35582 exists.\n\nAffected packages and fixed versions:\n- gov.nsa.emissary:emissary (Maven): affected all versions; fixed in 8.43.0\n- gov.nsa.emissary:emissary (Maven): affected all versions; fixed in 8.43.0\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-2026-35582/ (Markdown: https://insights.sbomify.com/CVE-2026-35582/index.md)","id":"CVE-2026-35582","markdown":"https://insights.sbomify.com/CVE-2026-35582/index.md","name":"CVE-2026-35582","record":{"aliases":["GHSA-3p24-9x7v-7789"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Emissary workflow engine","requires_auth":"low_privilege","summary":"A place configuration author can inject shell commands via unvalidated file ending parameters in Emissary, leading to arbitrary code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"emissary","vendor":"nsa"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"Emissary is a P2P based data-driven workflow engine. In versions 8.42.0 and below, Executrix.getCommand() is vulnerable to OS command injection  because it interpolates temporary file paths into a /bin/sh -c shell command string without any escaping or input validation. The IN_FILE_ENDING and OUT_FILE_ENDING configuration keys flow directly into these paths, allowing a place author who can write or modify a .cfg file to inject arbitrary shell metacharacters that execute OS commands in the JVM process's security context. The framework already sanitizes placeName via an allowlist before embedding it in the same shell string, but applies no equivalent sanitization to file ending values. No runtime privileges beyond place configuration authorship, and no API or network access, are required to exploit this vulnerability. This is a framework-level defect with no safe mitigation available to downstream implementors, as Executrix provides neither escaping nor documented preconditions against metacharacters in file ending inputs. This issue has been fixed in version 8.43.0.","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":"Emissary has an OS Command Injection via Unvalidated IN_FILE_ENDING / OUT_FILE_ENDING in Executrix","id":"CVE-2026-35582","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Emissary has a Path Traversal via Blacklist Bypass in Configuration API","id":"CVE-2026-35583"},"packages":[{"ecosystem":"Maven","fixed":["8.43.0"],"introduced":["0"],"last_affected":[],"package":"gov.nsa.emissary:emissary","purl":null,"source":"GHSA-3p24-9x7v-7789"},{"ecosystem":"Maven","fixed":["8.43.0"],"introduced":["0"],"last_affected":[],"package":"gov.nsa.emissary:emissary","purl":"pkg:maven/gov.nsa.emissary/emissary","source":"GHSA-3p24-9x7v-7789"}],"prev":{"headline":"Emissary has a Command Injection via PLACE_NAME Configuration in Executrix","id":"CVE-2026-35581"},"products":["emissary"],"published":"2026-04-18","related":[{"cvss_score":9.1,"headline":"Emissary has GitHub Actions Shell Injection via Workflow Inputs","id":"CVE-2026-35580","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2021-32094","kev_date_added":null,"published":"2021-05-07"},{"cvss_score":8.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2021-32096","kev_date_added":null,"published":"2021-05-07"},{"cvss_score":8.1,"headline":"Missing authorization in n/a","id":"CVE-2021-32095","kev_date_added":null,"published":"2021-05-07"},{"cvss_score":8,"headline":"Post-authentication Remote Code Execution (RCE) in emissary:emissary","id":"CVE-2021-32647","kev_date_added":null,"published":"2021-05-28"},{"cvss_score":7.2,"headline":"Emissary has a Command Injection via PLACE_NAME Configuration in Executrix","id":"CVE-2026-35581","kev_date_added":null,"published":"2026-04-07"}],"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":"2026-04-20","vendors":["NationalSecurityAgency"]},"summary":"A place configuration author can inject shell commands via unvalidated file ending parameters in Emissary, leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2026-35582/"}