CVE-2026-42085 — Vulnerability in openc3 — CVE Details
OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.41%). Schedule for your next planned update.
Does your project use an affected openc3 version?
Paste your Gemfile.lock to check it for CVE-2026-42085 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published April 22, 2026 (219 days ago).
- Last revised September 10, 2026 — 140 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install openc3 -v 7.0.0-rc3
gem install openc3 -v 6.10.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-23
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/OpenC3/cosmos/security/advisories/GHSA-4jvx-93h3-f45hWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42085ADVISORY
- https://github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5WEB
- https://github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42WEB
- https://github.com/OpenC3/cosmosPACKAGE
- https://github.com/OpenC3/cosmos/releases/tag/v6.10.5WEB
- https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42085.ymlWEB
Frequently Asked Questions
- What is CVE-2026-42085?
- OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.3/10).
- How do I check if my project is affected by CVE-2026-42085?
- CVE-2026-42085 affects openc3. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42085 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 27% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-42088CRITICAL
OpenC3 COSMOS: Permissions Bypass Provides User Access to Unassigned Administrative Actions via Script Runner Tool
- CVE-2026-77602CRITICAL
OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)
- CVE-2026-42087CRITICAL
OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database
- CVE-2024-46977HIGH
OpenC3 Path Traversal via screen controller (`GHSL-2024-127`)
- CVE-2026-42084HIGH
OpenC3 COSMOS: Hijacked session token can be used to reset password for persistence
- CVE-2024-47529MEDIUM
OpenC3 stores passwords in clear text (`GHSL-2024-129`)
- CVE-2026-42086MEDIUM
OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender
- CVE-2024-43795MEDIUM
OpenC3 Cross-site Scripting in Login functionality (`GHSL-2024-128`)