4.3medium
OpenC3 COSMOS: Arbitrary write to plugins directory via path-traversed config filenames
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4jvx-93h3-f45hPYSEC-2026-2243
Description
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to versions 6.10.5 and 7.0.0-rc3, OpenC3 COSMOS contains a design flaw in the save_tool_config() function that allows saving tool configuration files at arbitrary locations inside the shared /plugins directory tree by supplying crafted configuration filenames. Although the implementation sufficiently mitigates standard path traversal attacks, by canonicalizing filename to an absolute path, all plugins share this same root directory. That enables users to create arbitrary file structures and overwrite existing configuration files within the shared /plugins directory. This issue has been patched in versions 6.10.5 and 7.0.0-rc3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenC3 cosmos | < 6.10.5, >= 7.0.0.pre.rc1, < 7.0.0-rc3, before 6.10.5, 7.0.0 | CVE List, NVD |
| openc3 (RubyGems) | before 6.10.5, from 7.0.0.pre.rc1 before 7.0.0-rc3 | GitHub Advisory Database |
| openc3 (PyPI) | before 6.10.5 | PyPA Advisory Database |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| PyPA Advisory Database | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to versions 6.10.5 and 7.0.0-rc3, OpenC3 COSMOS contains a design flaw in the save_tool_config() function that allows saving tool configuration files at arbitrary locations inside the shared /plugins directory tree by supplying crafted configuration filenames. Although the implementation sufficiently mitigates standard path traversal attacks, by canonicalizing filename to an absolute path, all plugins share this same root directory. That enables users to create arbitrary file structures and overwrite existing configuration files within the shared /plugins directory. This issue has been patched in versions 6.10.5 and 7.0.0-rc3.
GitHub Advisory Database
Summary
OpenC3 COSMOS contains a design flaw in the save_tool_config() function that allows saving tool configuration files at arbitrary locations inside the shared /plugins directory tree by supplying crafted configuration filenames. Although the implementation sufficiently mitigates standard path traversal attacks, by canonicalizing filename to an absolute path, all plugins share this same root directory. That enables users to create arbitrary file structures and overwrite existing configuration files within the shared /plugins directory.
Details
In function save_tool_config() (local_mode.rb) responsible for saving user-supplied tool configuration, the desired saving directory is not sufficiently enforced, instead allowing writes inside entire OPENC3_LOCAL_MODE_PATH.
PoC
- Navigate to any tool that enables “Save Configuration” option in left-hand drop-down menu (here Limits Monitor as an example)
- Save a new config with path traversal name using “../” sequences to escape desired directory (up to 3 levels high)
- Observe new files created in /plugins directory by inspecting docker container directly (
openc3-COSMOS-cmd-tlm-api) or using Bucket Explorer (plugin_default)
Impact
Modifying the data of other plugins
NVD (es)
OpenC3 COSMOS proporciona la funcionalidad necesaria para enviar comandos a y recibir datos de uno o más sistemas embebidos. Antes de las versiones 6.10.5 y 7.0.0-rc3, OpenC3 COSMOS contiene un fallo de diseño en la función save_tool_config() que permite guardar archivos de configuración de herramientas en ubicaciones arbitrarias dentro del árbol de directorios compartido /plugins al proporcionar nombres de archivo de configuración manipulados. Aunque la implementación mitiga suficientemente los ataques estándar de salto de ruta, al canonizar el nombre de archivo a una ruta absoluta, todos los plugins comparten este mismo directorio raíz. Eso permite a los usuarios crear estructuras de archivos arbitrarias y sobrescribir archivos de configuración existentes dentro del directorio compartido /plugins. Este problema ha sido parcheado en las versiones 6.10.5 y 7.0.0-rc3.
References
| https://github.com/OpenC3/cosmos/security/advisories/GHSA-4jvx-93h3-f45h | evidence, exploit, vendor-advisory, web | |
| https://github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5 | fix, patch, web | |
| https://github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42 | fix, patch, web | |
| https://github.com/OpenC3/cosmos/releases/tag/v6.10.5 | advisory, release-notes, web | |
| https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3 | advisory, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42085 | advisory | |
| https://github.com/OpenC3/cosmos | package | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42085.yml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42085 changed 2026-05-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4jvx-93h3-f45h changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-42085 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2243 changed 2026-07-13 | CC-BY-4.0 |