{"answers":{"affected":"2 open source packages ship an affected version, including gov.nsa.emissary:emissary. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-35581 in the wild and no public exploit code.","fix":"Upgrade gov.nsa.emissary:emissary to 8.39.0 or later.","what":"CVE-2026-35581 is a high-severity command injection vulnerability in NationalSecurityAgency emissary, published on 7 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35581 and fix it if it is affected.\n\nWhat it is: CVE-2026-35581 is a high-severity command injection vulnerability in NationalSecurityAgency emissary, published on 7 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-35581 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- gov.nsa.emissary:emissary (Maven): affected all versions; fixed in 8.39.0\n- gov.nsa.emissary:emissary (Maven): affected all versions; fixed in 8.39.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-35581/ (Markdown: https://insights.sbomify.com/CVE-2026-35581/index.md)","id":"CVE-2026-35581","markdown":"https://insights.sbomify.com/CVE-2026-35581/index.md","name":"CVE-2026-35581","record":{"aliases":["GHSA-6c37-7w4p-jg9v"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Emissary workflow engine","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary shell commands via the PLACE_NAME configuration parameter in the Executrix utility class.","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":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Emissary is a P2P based data-driven workflow engine. Prior to 8.39.0, the Executrix utility class constructed shell commands by concatenating configuration-derived values — including the PLACE_NAME parameter — with insufficient sanitization. Only spaces were replaced with underscores, allowing shell metacharacters (;, |, $, `, (, ), etc.) to pass through into /bin/sh -c command execution. This vulnerability is fixed in 8.39.0.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Emissary has a Command Injection via PLACE_NAME Configuration in Executrix","id":"CVE-2026-35581","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Emissary has an OS Command Injection via Unvalidated IN_FILE_ENDING / OUT_FILE_ENDING in Executrix","id":"CVE-2026-35582"},"packages":[{"ecosystem":"Maven","fixed":["8.39.0"],"introduced":["0"],"last_affected":[],"package":"gov.nsa.emissary:emissary","purl":null,"source":"GHSA-6c37-7w4p-jg9v"},{"ecosystem":"Maven","fixed":["8.39.0"],"introduced":["0"],"last_affected":[],"package":"gov.nsa.emissary:emissary","purl":"pkg:maven/gov.nsa.emissary/emissary","source":"GHSA-6c37-7w4p-jg9v"}],"prev":{"headline":"Emissary has GitHub Actions Shell Injection via Workflow Inputs","id":"CVE-2026-35580"},"products":["emissary"],"published":"2026-04-07","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":"Emissary has an OS Command Injection via Unvalidated IN_FILE_ENDING / OUT_FILE_ENDING in Executrix","id":"CVE-2026-35582","kev_date_added":null,"published":"2026-04-18"},{"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"}],"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-08","vendors":["NationalSecurityAgency"]},"summary":"Attackers can execute arbitrary shell commands via the PLACE_NAME configuration parameter in the Executrix utility class.","url":"https://insights.sbomify.com/CVE-2026-35581/"}