# CVE-2026-35582: Emissary has an OS Command Injection via Unvalidated IN_FILE_ENDING / OUT_FILE_ENDING in Executrix

Source: https://junglewise.ai/threats/cve-2026-35582-emissary-has-an-os-command-injection-via-unvalidated-in-file  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-18. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-35582 · Severity: high · CVSS 8.8 · Published 2026-04-18

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.

Technologies: [gov.nsa.emissary:emissary (Maven)](https://junglewise.ai/threats/technologies/gov-nsa-emissary-emissary), [Nsa Emissary](https://junglewise.ai/threats/technologies/emissary). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [Nsa](https://junglewise.ai/threats/vendors/nsa).

## Quick answers

**Is CVE-2026-35582 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-35582 being exploited in the wild.

**How severe is CVE-2026-35582?** High severity, with a CVSS score of 8.8, published 18 April 2026.

**Which products and versions are affected?** gov.nsa.emissary:emissary (Maven) <= 8.42.0, ECOSYSTEM:introduced=0,fixed=8.43.0.

**Is there a fix for CVE-2026-35582?** Yes. gov.nsa.emissary:emissary (Maven): upgrade to 8.43.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-35582?** Check whether you run gov.nsa.emissary:emissary (Maven) or Nsa Emissary at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- gov.nsa.emissary:emissary (Maven): upgrade to 8.43.0 or later

  ```sh
  # set gov.nsa.emissary:emissary to 8.43.0 in your pom.xml or build.gradle
  ```


## Affected products

- gov.nsa.emissary:emissary (Maven) <= 8.42.0, ECOSYSTEM:introduced=0,fixed=8.43.0
- Nsa Emissary

## Identifiers

- CVE-2026-35582
- GHSA-3p24-9x7v-7789

## References

- [https://api.github.com/users/blueandhack](https://api.github.com/users/blueandhack)
- [https://github.com/blueandhack](https://github.com/blueandhack)
- [https://api.github.com/users/blueandhack/gists%7B/gist_id%7D](https://api.github.com/users/blueandhack/gists%7B/gist_id%7D)
- [https://api.github.com/users/blueandhack/repos](https://api.github.com/users/blueandhack/repos)
- [https://avatars.githubusercontent.com/u/4150885?v=4](https://avatars.githubusercontent.com/u/4150885?v=4)
- [https://api.github.com/users/blueandhack/events%7B/privacy%7D](https://api.github.com/users/blueandhack/events%7B/privacy%7D)

## Related threats

- [NationalSecurityAgency Emissary incomplete SSRF/redirect fix](https://junglewise.ai/threats/cve-2026-54442-nationalsecurityagency-emissary-has-an-incomplete-fix-for)
- [Emissary has a Path Traversal via Blacklist Bypass in Configuration API](https://junglewise.ai/threats/cve-2026-35583-emissary-has-a-path-traversal-via-blacklist-bypass-in)
- [Emissary has a Command Injection via PLACE_NAME Configuration in Executrix](https://junglewise.ai/threats/cve-2026-35581-emissary-has-a-command-injection-via-place-name-configuration-in)
- [Emissary has GitHub Actions Shell Injection via Workflow Inputs](https://junglewise.ai/threats/cve-2026-35580-emissary-has-github-actions-shell-injection-via-workflow-inputs)
- [Emissary has Stored XSS via Navigation Template Link Injection](https://junglewise.ai/threats/cve-2026-35571-emissary-has-stored-xss-via-navigation-template-link-injection)
