CVE-2026-35582 Emissary has an OS Command Injection via Unvalidated IN_FILE_ENDING / OUT_FILE_ENDING in Executrix
A place configuration author can inject shell commands via unvalidated file ending parameters in Emissary, leading to arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-35582?
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.
Official 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.
Which versions are affected by CVE-2026-35582?
2 open source packages ship an affected version, including gov.nsa.emissary:emissary. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gov.nsa.emissary:emissary Maven | All versions | 8.43.0 |
gov.nsa.emissary:emissary Maven | All versions | 8.43.0 |
Products include Nsa Emissary.
How do I fix CVE-2026-35582?
Upgrade gov.nsa.emissary:emissary to 8.43.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-35582 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35582 exists.
Other vulnerabilities in NationalSecurityAgency emissary
Sources
Also known as GHSA-3p24-9x7v-7789.