{"id":"CVE-2026-42085","aliases":["CVE-2026-42085","GHSA-4jvx-93h3-f45h","PYSEC-2026-2243"],"related":[],"kind":"vulnerability","state":"published","title":"OpenC3 COSMOS: Arbitrary write to plugins directory via path-traversed config filenames","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Summary\nOpenC3 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.\n\n### Details\nIn function `save_tool_config()` ([local_mode.rb](https://github.com/OpenC3/cosmos/blob/397abec0d57972881a2e8dc10902d0dce9c27f42/openc3/lib/openc3/utilities/local_mode.rb#L452))  responsible for saving user-supplied tool configuration, the desired saving directory is not sufficiently enforced, instead allowing writes inside entire `OPENC3_LOCAL_MODE_PATH`.\n\n### PoC\n1.\tNavigate to any tool that enables “Save Configuration” option in left-hand drop-down menu (here Limits Monitor as an example)\n2.\tSave a new config with path traversal name using “../” sequences to escape desired directory (up to 3 levels high)\n3.\tObserve new files created in /plugins directory by inspecting docker container directly (`openc3-COSMOS-cmd-tlm-api`) or using Bucket Explorer (`plugin_default`)\n\n<img width=\"811\" height=\"584\" alt=\"image\" src=\"https://github.com/user-attachments/assets/015a59b4-8b18-4801-aef0-df4831d5c1c3\" />\n<img width=\"720\" height=\"664\" alt=\"image\" src=\"https://github.com/user-attachments/assets/8ca4a5b7-ee45-4c3b-99f6-f41f974a74a7\" />\n\n### Impact\nModifying the data of other plugins","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenC3 COSMOS proporciona la funcionalidad necesaria para enviar comandos a y recibir datos de uno o más sistemas embebidos. Antes de las versiones 6.10.5 y 7.0.0-rc3, OpenC3 COSMOS contiene un fallo de diseño en la función save_tool_config() que permite guardar archivos de configuración de herramientas en ubicaciones arbitrarias dentro del árbol de directorios compartido /plugins al proporcionar nombres de archivo de configuración manipulados. Aunque la implementación mitiga suficientemente los ataques estándar de salto de ruta, al canonizar el nombre de archivo a una ruta absoluta, todos los plugins comparten este mismo directorio raíz. Eso permite a los usuarios crear estructuras de archivos arbitrarias y sobrescribir archivos de configuración existentes dentro del directorio compartido /plugins. Este problema ha sido parcheado en las versiones 6.10.5 y 7.0.0-rc3.","source":"nvd"}],"published":"2026-04-22T22:22:02.000Z","modified":"2026-10-26T19:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-23"],"affected":[{"ranges":[{"version":"< 6.10.5","status":"affected"},{"version":">= 7.0.0.pre.rc1, < 7.0.0-rc3","status":"affected"}],"vendor":"OpenC3","product":"cosmos","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.10.5"}],"ecosystem":"RubyGems","package":"openc3","purl":"pkg:gem/openc3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0.pre.rc1","status":"affected","fixed":"7.0.0-rc3"}],"ecosystem":"RubyGems","package":"openc3","purl":"pkg:gem/openc3","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.10.5"},{"status":"affected","version":"7.0.0"},{"status":"affected","version":"7.0.0"}],"vendor":"openc3","product":"cosmos","cpe":"cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.10.5"}],"ecosystem":"PyPI","package":"openc3","purl":"pkg:pypi/openc3","source":"pysec"}],"references":[{"url":"https://github.com/OpenC3/cosmos/security/advisories/GHSA-4jvx-93h3-f45h","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/commit/9957a9fa460c0c0cf5cdbf6a5931bbdd025246a5","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/commit/e6efccbd148ba0e3361c5891027f2373aa140d42","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v6.10.5","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42085","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenC3/cosmos","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42085.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-04T18:43:28.813Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42085","url":"https://www.cve.org/CVERecord?id=CVE-2026-42085","licence":"CVE Terms of Use","modified":"2026-05-04T18:47:32.584Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4jvx-93h3-f45h","url":"https://github.com/advisories/GHSA-4jvx-93h3-f45h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:42.680Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42085","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42085","licence":"Public domain","modified":"2026-10-26T19:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2243","url":"https://osv.dev/vulnerability/PYSEC-2026-2243","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:38.668Z"}],"updatedAt":"2026-11-25T22:59:20.540Z","epss":{"score":0.00326,"percentile":0.27661,"date":"2026-12-01T12:00:22.000Z"}}