# CVE-2026-42085: OpenC3 COSMOS: Arbitrary write to plugins directory via path-traversed config filenames

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T22:22:02.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-4jvx-93h3-f45h, PYSEC-2026-2243
- Weaknesses: CWE-23
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OpenC3 cosmos: < 6.10.5; >= 7.0.0.pre.rc1, < 7.0.0-rc3; before 6.10.5; 7.0.0
- openc3 (RubyGems): before 6.10.5; from 7.0.0.pre.rc1 before 7.0.0-rc3
- openc3 (PyPI): before 6.10.5

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `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-f45h> (exploit, evidence, vendor-advisory, web)
- <https://github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5> (fix, patch, web)
- <https://github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42> (fix, patch, web)
- <https://github.com/OpenC3/cosmos/releases/tag/v6.10.5> (advisory, release-notes, web)
- <https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42085> (advisory)
- <https://github.com/OpenC3/cosmos> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42085.yml> (web)

## Sources

- CVE List: [CVE-2026-42085](https://www.cve.org/CVERecord?id=CVE-2026-42085), CVE Terms of Use, modified 2026-05-04
- GitHub Advisory Database: [GHSA-4jvx-93h3-f45h](https://github.com/advisories/GHSA-4jvx-93h3-f45h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42085](https://nvd.nist.gov/vuln/detail/CVE-2026-42085), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2243](https://osv.dev/vulnerability/PYSEC-2026-2243), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42085 · Whole record: https://cve.day/CVE-2026-42085.json · Rebuilt by cve.day 2026-11-25T22:59:20.540Z
