CVE-2026-35582

Source
https://cve.org/CVERecord?id=CVE-2026-35582
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35582.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-35582
Aliases
Downstream
Related
Published
2026-04-18T01:16:27.661Z
Modified
2026-07-15T22:54:09.388773Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Emissary has an OS Command Injection via Unvalidated IN_FILE_ENDING / OUT_FILE_ENDING in Executrix
Details

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 INFILEENDING and OUTFILEENDING 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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-116",
        "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35582.json"
}
References

Affected packages

Git / github.com/nationalsecurityagency/emissary

Affected ranges

Type
GIT
Repo
https://github.com/nationalsecurityagency/emissary
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:nsa:emissary:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "8.43.0"
        }
    ]
}

Affected versions

5.*
5.0.0
5.1.0
5.10.0
5.11.0
5.2.0
5.3.0
5.4.1
5.5.0
5.6.0
5.7.0
5.8.0
5.9.0
6.*
6.0.0
6.1.0
6.2.0
6.3.0
6.4.0
6.5.0
6.6.0
7.*
7.0.0
7.1.0
7.10.0
7.11.0
7.12.0
7.13.0
7.14.0
7.15.0
7.16.0
7.17.0
7.18.0
7.19.0
7.2.0
7.3.0
7.4.0
7.5.0
7.6.0
7.7.0
7.8.0
7.9.0
emissary-7.*
emissary-7.19.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35582.json"
vanir_signatures
[
    {
        "id": "CVE-2026-35582-323f1e49",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/nationalsecurityagency/emissary/commit/1faf33f2494c0128f250d7d2e8f2da99bbd32ae8",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "82551414500540406775916960027754615651",
                "62320965508151768674747474124063216909",
                "322365549278274997990320951550620727622",
                "213557375160697318211116164882045982343"
            ]
        },
        "target": {
            "file": "src/test/java/emissary/util/shell/ExecutrixTest.java"
        }
    },
    {
        "id": "CVE-2026-35582-3fc8a047",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/nationalsecurityagency/emissary/commit/1faf33f2494c0128f250d7d2e8f2da99bbd32ae8",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "284865606459956912547817729295031272344",
                "176564235562992455076196544757620120072",
                "119481394988113309752214300933146034249",
                "60790307438692041207771539795975975665",
                "287407936018701725723719650939679154879",
                "308433819947456805095136485750059091864",
                "113914754199556563564173922607334119663",
                "288457815162691553497324275797084427203",
                "9476055771237869182175905917258439192",
                "202354722705505992793731972919276336802",
                "164299710201388068896036998133314452629",
                "65949970788245829290879843317726172956",
                "83777317134611123498273132490368588744",
                "315942005995391977765715092481572178623",
                "207435511710414586395292466754917836606",
                "192202360470894161636373022459405864269",
                "283002582029824136042745921664221318182",
                "318398333757035970275247075502189893184",
                "335023782524215239022575213659051055239"
            ]
        },
        "target": {
            "file": "src/main/java/emissary/util/shell/Executrix.java"
        }
    },
    {
        "id": "CVE-2026-35582-43f128e6",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/nationalsecurityagency/emissary/commit/1faf33f2494c0128f250d7d2e8f2da99bbd32ae8",
        "deprecated": false,
        "digest": {
            "function_hash": "131164662056150553190595563401555892594",
            "length": 71.0
        },
        "target": {
            "function": "setOutFileEnding",
            "file": "src/main/java/emissary/util/shell/Executrix.java"
        }
    },
    {
        "id": "CVE-2026-35582-55a6e381",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/nationalsecurityagency/emissary/commit/1faf33f2494c0128f250d7d2e8f2da99bbd32ae8",
        "deprecated": false,
        "digest": {
            "function_hash": "19975849488965314989452361364165301817",
            "length": 1414.0
        },
        "target": {
            "function": "configure",
            "file": "src/main/java/emissary/util/shell/Executrix.java"
        }
    },
    {
        "id": "CVE-2026-35582-d276d84c",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/nationalsecurityagency/emissary/commit/1faf33f2494c0128f250d7d2e8f2da99bbd32ae8",
        "deprecated": false,
        "digest": {
            "function_hash": "32356760938483594514569888034640082582",
            "length": 70.0
        },
        "target": {
            "function": "setInFileEnding",
            "file": "src/main/java/emissary/util/shell/Executrix.java"
        }
    }
]
vanir_signatures_modified
"2026-07-15T22:54:09Z"