Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. openc3
  4. ›
  5. CVE-2026-42085

CVE-2026-42085: OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames

April 22, 2026 (updated May 4, 2026)

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.

References

  • github.com/OpenC3/cosmos
  • github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5
  • github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42
  • github.com/OpenC3/cosmos/releases/tag/v6.10.5
  • github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3
  • github.com/OpenC3/cosmos/security/advisories/GHSA-4jvx-93h3-f45h
  • github.com/advisories/GHSA-4jvx-93h3-f45h
  • nvd.nist.gov/vuln/detail/CVE-2026-42085

Code Behaviors & Features

Detect and mitigate CVE-2026-42085 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.0.0.pre.rc1 before 7.0.0-rc3, all versions before 6.10.5

Fixed versions

  • 6.10.5
  • 7.0.0-rc3

Solution

Upgrade to versions 6.10.5, 7.0.0-rc3 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-23: Relative Path Traversal

Source file

gem/openc3/CVE-2026-42085.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:33 +0000.