{"id":"CVE-2026-35583","aliases":["CVE-2026-35583","GHSA-hxf2-gm22-7vcm"],"related":[],"kind":"vulnerability","state":"published","title":"Emissary has a Path Traversal via Blacklist Bypass in Configuration API","summary":"Emissary is a P2P based data-driven workflow engine. Prior to 8.39.0, the configuration API endpoint (/api/configuration/{name}) validated configuration names using a blacklist approach that checked for \\, /, .., and trailing .. This could potentially be bypassed using URL-encoded variants, double-encoding, or Unicode normalization to achieve path traversal and read configuration files outside the intended directory. This vulnerability is fixed in 8.39.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Emissary is a P2P based data-driven workflow engine. Prior to 8.39.0, the configuration API endpoint (/api/configuration/{name}) validated configuration names using a blacklist approach that checked for \\, /, .., and trailing .. This could potentially be bypassed using URL-encoded variants, double-encoding, or Unicode normalization to achieve path traversal and read configuration files outside the intended directory. This vulnerability is fixed in 8.39.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe configuration API endpoint (`/api/configuration/{name}`) validated\nconfiguration names using a blacklist approach that checked for `\\`, `/`, `..`,\nand trailing `.`. This could potentially be bypassed using URL-encoded variants,\ndouble-encoding, or Unicode normalization to achieve path traversal and read\nconfiguration files outside the intended directory.\n\n## Details\n\n### Vulnerable code — `Configs.java` (line 126)\n\n```java\nprotected static String validate(String config) {\n    if (StringUtils.isBlank(config) || config.contains(\"\\\\\") || config.contains(\"/\")\n        || config.contains(\"..\") || config.endsWith(\".\")) {\n        throw new IllegalArgumentException(\"Invalid config name: \" + config);\n    }\n    return Strings.CS.appendIfMissing(config.trim(), CONFIG_FILE_ENDING);\n}\n```\n\n### Weakness\n\nThe blacklist blocked literal `\\`, `/`, `..`, and trailing `.` but could\npotentially miss:\n\n- URL-encoded variants (`%2e%2e%2f`) if decoded after validation\n- Double-encoded sequences (`%252e%252e%252f`)\n- Unicode normalization bypasses\n- The approach relies on string matching rather than canonical path resolution\n\n### Impact\n\n- Potential read access to configuration files outside the intended config\n  directory\n- Information disclosure of sensitive configuration values\n\n## Remediation\n\nFixed in [PR #1292](https://github.com/NationalSecurityAgency/emissary/pull/1292),\nmerged into release 8.39.0.\n\nThe blacklist was replaced with an allowlist regex that only permits characters\nmatching `^[a-zA-Z0-9._-]+$`:\n\n```java\nprotected static final Pattern VALID_CONFIG_NAME = Pattern.compile(\"^[a-zA-Z0-9._-]+$\");\n\nprotected static String validate(String config) {\n    if (!VALID_CONFIG_NAME.matcher(config).matches() || config.contains(\"..\") || config.endsWith(\".\")) {\n        throw new IllegalArgumentException(\"Invalid config name: \" + config);\n    }\n    return Strings.CS.appendIfMissing(config.trim(), CONFIG_FILE_ENDING);\n}\n```\n\nThis ensures that any character outside the allowed set — including encoded\nslashes, percent signs, and Unicode sequences — is rejected before the config\nname reaches the filesystem.\n\nTests were added to verify that URL-encoded (`%2e%2e%2f`), double-encoded\n(`%252e%252e%252f`), and Unicode (`U+002F`) traversal attempts are blocked.\n\n## Workarounds\n\nIf upgrading is not immediately possible, deploy a reverse proxy or WAF rule\nthat rejects requests to `/api/configuration/` containing encoded path traversal\nsequences.\n\n## References\n\n- [PR #1292 — validate config name with an allowlist](https://github.com/NationalSecurityAgency/emissary/pull/1292)\n- Original report: GHSA-wjqm-p579-x3ww","format":"markdown","source":"ghsa"},{"lang":"es","text":"Emissary es un motor de flujo de trabajo basado en P2P y dirigido por datos. Antes de 8.39.0, el endpoint de la API de configuración (/api/configuration/{name}) validaba los nombres de configuración utilizando un enfoque de lista negra que comprobaba la presencia de \\, /, .., y .. finales. Esto podría eludirse potencialmente utilizando variantes codificadas en URL, doble codificación o normalización Unicode para lograr un salto de ruta y leer archivos de configuración fuera del directorio previsto. Esta vulnerabilidad está corregida en 8.39.0.","source":"nvd"}],"published":"2026-04-07T15:57:41.496Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 8.39.0","status":"affected"}],"vendor":"NationalSecurityAgency","product":"emissary","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.39.0"}],"ecosystem":"Maven","package":"gov.nsa.emissary:emissary","purl":"pkg:maven/gov.nsa.emissary/emissary","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"8.38.0"}],"vendor":"nsa","product":"emissary","cpe":"cpe:2.3:a:nsa:emissary:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/NationalSecurityAgency/emissary/security/advisories/GHSA-hxf2-gm22-7vcm","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35583","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/NationalSecurityAgency/emissary/pull/1292","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/NationalSecurityAgency/emissary","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-09T16:12:26.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35583","url":"https://www.cve.org/CVERecord?id=CVE-2026-35583","licence":"CVE Terms of Use","modified":"2026-04-09T16:18:56.328Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hxf2-gm22-7vcm","url":"https://github.com/advisories/GHSA-hxf2-gm22-7vcm","licence":"CC-BY-4.0","modified":"2026-04-08T00:27:17.482Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35583","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35583","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.130Z","epss":{"score":0.00297,"percentile":0.24067,"date":"2026-12-01T12:00:22.000Z"}}