{"id":"CVE-2026-42085","published":"2026-05-04T17:13:39Z","modified":"2026-05-04T18:47:32Z","title":"OpenC3 COSMOS: Arbitrary write to plugins directory via path-traversed config filenames","vendor":"OpenC3","product":"cosmos","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00411,"percentile":0.26959,"provenance":"source"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/OpenC3/cosmos/security/advisories/GHSA-4jvx-93h3-f45h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v6.10.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":5.39},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"openc3","affectedVersions":[{"vendor":"OpenC3","product":"cosmos","versions":["< 6.10.5",">= 7.0.0.pre.rc1, < 7.0.0-rc3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-04T18:43:28.813129Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"openc3","vulnerableRanges":["<6.10.5",">=7.0.0.pre.rc1, <7.0.0-rc3"],"patched":["6.10.5","7.0.0-rc3"],"from":["GHSA-4jvx-93h3-f45h"],"provenance":"source"},{"ecosystem":"PyPI","package":"openc3","vulnerableRanges":["<6.10.5"],"patched":["6.10.5"],"from":["PYSEC-2026-2243"],"provenance":"source"}],"summary":{"text":"OpenC3 COSMOS contains a flaw in the save_tool_config() function, which lets saved tool configuration files be written to arbitrary locations within the shared /plugins directory tree through crafted configuration filenames. An attacker with network access and low-privilege authenticated access can use this to create arbitrary file structures and overwrite existing configuration files in that shared directory, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:27Z"},"euvd":{"id":"EUVD-2026-27059","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47529","published":"2024-10-02","fixed":"5.19.0","kev":false},{"cve":"CVE-2025-68271","published":"2026-01-13","fixed":"6.10.2","kev":false,"link":{"from":"CVE-2025-68271","to":"CVE-2026-42085","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:openc3","fromFixed":"6.10.2","toFixed":"6.10.5","daysApart":111}]}},{"cve":"CVE-2026-42084","published":"2026-05-04","fixed":"7.0.0-rc3","kev":false},{"cve":"CVE-2026-42085","published":"2026-05-04","fixed":"7.0.0-rc3","kev":false},{"cve":"CVE-2026-42087","published":"2026-05-04","fixed":"7.0.0-rc3","kev":false},{"cve":"CVE-2026-42086","published":"2026-05-04","fixed":"7.0.0","kev":false},{"cve":"CVE-2026-77601","published":"2026-09-23","fixed":"7.3.0","kev":false}],"package":"RubyGems:openc3"}}