CVE-2026-42085
JSON

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 packageVersionsReported by
OpenC3 cosmos< 6.10.5, >= 7.0.0.pre.rc1, < 7.0.0-rc3, before 6.10.5, 7.0.0CVE List, NVD
openc3 (RubyGems)before 6.10.5, from 7.0.0.pre.rc1 before 7.0.0-rc3GitHub Advisory Database
openc3 (PyPI)before 6.10.5PyPA Advisory Database

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
PyPA Advisory Database4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-23

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
  1. Navigate to any tool that enables “Save Configuration” option in left-hand drop-down menu (here Limits Monitor as an example)
  2. Save a new config with path traversal name using “../” sequences to escape desired directory (up to 3 levels high)
  3. Observe new files created in /plugins directory by inspecting docker container directly (openc3-COSMOS-cmd-tlm-api) or using Bucket Explorer (plugin_default)
<img width="811" height="584" alt="image" src="https://github.com/user-attachments/assets/015a59b4-8b18-4801-aef0-df4831d5c1c3" /> <img width="720" height="664" alt="image" src="https://github.com/user-attachments/assets/8ca4a5b7-ee45-4c3b-99f6-f41f974a74a7" />
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

Sources

SourceRecordLicence
CVE ListCVE-2026-42085 changed 2026-05-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-4jvx-93h3-f45h changed 2026-09-10CC-BY-4.0
NVDCVE-2026-42085 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-2243 changed 2026-07-13CC-BY-4.0