Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to COSMOS web UI
-
DeliveryAccess tool with Save Configuration option
-
ExploitSubmit crafted config name with ../ sequences
-
ExecutionBackend canonicalizes and saves to /plugins directory
-
ImpactOverwrite target plugin configuration file
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
|
| Exploitation Conditions | Exploitation requires three specific conditions: (1) authenticated access to the OpenC3 COSMOS web UI with sufficient privileges to access a tool that implements the 'Save Configuration' feature; (2) the target COSMOS instance must be version < 6.10.5 or 7.0.0-rc1 through 7.0.0-rc3; (3) the attacked tool must use the vulnerable save_tool_config() function in local_mode.rb or the vulnerable ToolConfigModel class. The vulnerability does NOT affect: (a) unauthenticated attackers; (b) COSMOS instances where the configuration save UI is disabled; (c) COSMOS instances where tools do not expose the Save Configuration option; (d) single-user or highly isolated plugin deployments where overwriting another plugin's config has no impact. The path traversal is limited to the /plugins directory tree; system files outside /plugins cannot be written. Non-default configuration (disabling config save UI) completely prevents exploitation. |
| Impact | CVSS score of 4.3 accurately reflects the limited real-world risk despite path traversal capability. The attack requires PR:L (authenticated user access to the COSMOS web UI), which significantly restricts the attacker population to legitimate system operators or compromised accounts. The vulnerability cannot be exploited unauthenticated or without user interaction to save a configuration. Scope is Unchanged (S:U), meaning the attacker cannot escape the /plugins directory boundary to impact system files. Integrity is compromised (I:L) but confidentiality and availability are not affected-the attacker can only overwrite other plugins' configuration files within the same directory tree, not execute code or access data. No public exploit code or active KEV listing is identified, suggesting this is primarily a concern for multi-tenant COSMOS deployments where plugin isolation is critical. The patch is straightforward input validation, indicating the underlying design flaw (no per-plugin directory enforcement) was known but previously mitigated only by canonicalization. Organizations running single-plugin or single-tenant COSMOS instances with trusted operators face negligible risk; those with untrusted plugin developers or multi-tenant architectures should prioritize patching. |
| Exploit ScenarioDerived | An authenticated COSMOS operator with legitimate access to the web UI navigates to a tool supporting configuration save (such as Limits Monitor), enters a configuration name like '../../../evil_plugin/config.json', and clicks Save. The application writes the file to /plugins/evil_plugin/config.json, overwriting that plugin's legitimate configuration and potentially degrading its functionality or injecting malicious settings. If the plugin configuration is interpreted as code or controls critical embedded system commands, this could disrupt operations. Proof-of-concept demonstration is documented in the GitHub advisory with screenshots showing files created outside the intended tool directory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
OpenC3 COSMOS before versions 6.10.5 and 7.0.0-rc3 allows authenticated users to write arbitrary files to the shared /plugins directory via path traversal sequences in tool configuration filenames, potentially overwriting other plugins' configuration files. The vulnerability exists in the save_tool_config() function which canonicalizes filenames but does not restrict writes to plugin-specific subdirectories, enabling lateral movement between plugins. CVSS 4.3 reflects low severity due to authentication requirement and limited scope (integrity only), though real-world impact depends on whether plugin configurations contain sensitive data.
RemediationAI
Upgrade to OpenC3 COSMOS 6.10.5 or 7.0.0-rc3 or later immediately. The patches add regex-based input validation to reject tool and configuration names containing forward slashes, backslashes, or '..' sequences at both frontend (Vue.js SaveConfigDialog) and backend (Ruby ToolConfigModel and Python ToolConfigModel) layers. No workarounds are available without code modification. If immediate patching is not possible, disable tool configuration save functionality in the COSMOS web UI or restrict access to the COSMOS interface to trusted operators only via network firewall rules or reverse proxy authentication. Verify the fix by checking that configuration save attempts with names like '../../evil' or 'sub/config' are rejected with 'Invalid config name' errors. See GitHub commits https://github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5 and https://github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42 for exact code changes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in pypi, rubygems, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenC3 COSMOS is an embedded systems command and telemetry framework written in Ruby/Python that manages tool configurations across a shared plugin directory structure. The vulnerability lies in the save_tool_config() function in local_mode.rb, which accepts user-supplied configuration filenames from the web UI and saves them within OPENC3_LOCAL_MODE_PATH. Although the implementation uses path canonicalization to prevent standard '..' escapes to arbitrary system locations, the shared /plugins root directory is accessible to all plugins. The CWE-23 classification (Relative Path Traversal) applies because the function validates against absolute path traversal but fails to enforce per-plugin directory boundaries. The fix adds regex validation (/[/\]|\.\./) to both the Vue.js frontend SaveConfigDialog component and backend Ruby/Python ToolConfigModel classes, rejecting any configuration or tool names containing path separators or '..' sequences.
Know when Cosmos gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Critical remote code execution vulnerability in OpenC3 COSMOS v6.0.0's Plugin Management component that allows unauthent
OpenC3 COSMOS versions before v6.0.2 contain hardcoded credentials embedded in the Service Account, allowing unauthentic
Critical authentication bypass vulnerability in OpenC3 COSMOS v6.0.0 caused by weak password requirements that enable br
Critical directory traversal vulnerability in OpenC3 COSMOS versions before 6.1.0 affecting the /script-api/scripts/ end
Directory traversal vulnerability in OpenC3 COSMOS versions before 6.1.0 that allows unauthenticated remote attackers to
A security vulnerability in OpenC3 COSMOS (CVSS 7.5) that allows attackers. Risk factors: public PoC available.
A cross-site scripting (XSS) vulnerability in OpenC3 COSMOS before v6.0.2 allows attackers to execute arbitrary web scri
SQL injection in OpenC3 COSMOS 6.7.0 to 7.0.0-rc2 allows authenticated users with minimal 'tlm' (telemetry viewer) privi
Authenticated OS command injection in OpenC3 COSMOS 5.12.0 through 7.2.1 allows a user with a valid session to run arbit
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems.
OpenC3 COSMOS password change functionality accepts valid session tokens in lieu of current passwords, enabling attacker
OpenC3 COSMOS before 7.0.0-rc3 lets any user who is allowed to create and run scripts in the Script Runner widget escala
EUVD-2026-27059
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB