{"id":"CVE-2024-46977","published":"2024-10-02T19:17:14Z","modified":"2024-10-31T13:54:04Z","title":"OpenC3 COSMOS allows a path traversal via screen controller (`GHSL-2024-127`)","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. A path traversal vulnerability inside of LocalMode's open_local_file method allows an authenticated user with adequate permissions to download any .txt via the ScreensController#show on the web server COSMOS is running on (depending on the file permissions). This vulnerability is fixed in 5.19.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01309,"percentile":0.70665,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/OpenC3/cosmos/security/advisories/GHSA-8jxr-mccc-mwg8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenC3/cosmos/commit/a34e61aea5a465f0ab3e57d833ae7ff4cafd710b","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-127_GHSL-2024-129_OpenC3_COSMOS","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":14.13},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"openc3","affectedVersions":[{"vendor":"OpenC3","product":"cosmos","versions":["< 5.19.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-02T19:53:40.786311Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"openc3","vulnerableRanges":["<5.19.0"],"patched":["5.19.0"],"from":["GHSA-8jxr-mccc-mwg8"],"provenance":"source"},{"ecosystem":"PyPI","package":"openc3","vulnerableRanges":["<5.19.0"],"patched":["5.19.0"],"from":["GHSA-8jxr-mccc-mwg8","PYSEC-2024-101"],"provenance":"source"}],"summary":{"text":"OpenC3 COSMOS contains a path traversal flaw in the LocalMode open_local_file method, reached through the ScreensController#show action in the web server component. An authenticated user with adequate permissions can exploit it over the network with low attack complexity and no user interaction to download any .txt file the server can read, subject to the file's permissions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:53Z"},"euvd":{"id":"EUVD-2024-0127","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-openc3-cosmos-cve-2024-43795","children":[{"from":"CVE-2024-46977","to":"CVE-2024-47529","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["openc3-cosmos-script-runner-api/app/controllers/scripts_controller.rb"],"commits":["https://github.com/OpenC3/cosmos/commit/a34e61aea5a465f0ab3e57d833ae7ff4cafd710b","https://github.com/OpenC3/cosmos/commit/b5ab34fe7fa54c0c8171c4aa3caf4e03d6f63bd7"],"basis":"shared function","functions":["run"]}]},{"from":"CVE-2024-46977","to":"CVE-2025-28382","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["openc3-cosmos-cmd-tlm-api/app/controllers/application_controller.rb","openc3-cosmos-script-runner-api/app/controllers/application_controller.rb"],"commits":["https://github.com/OpenC3/cosmos/commit/a34e61aea5a465f0ab3e57d833ae7ff4cafd710b","https://github.com/OpenC3/cosmos/commit/fc7e11310a7cdf9f1939886e1b29009db4d4b718"],"basis":"shared function","functions":["authorization"]}]},{"from":"CVE-2024-46977","to":"CVE-2025-28384","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["openc3-cosmos-cmd-tlm-api/app/controllers/application_controller.rb","openc3-cosmos-script-runner-api/app/controllers/application_controller.rb"],"commits":["https://github.com/OpenC3/cosmos/commit/a34e61aea5a465f0ab3e57d833ae7ff4cafd710b","https://github.com/OpenC3/cosmos/commit/fc7e11310a7cdf9f1939886e1b29009db4d4b718"],"basis":"shared function","functions":["authorization"]}]},{"from":"CVE-2024-46977","to":"CVE-2026-77602","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["openc3-cosmos-cmd-tlm-api/app/controllers/storage_controller.rb","openc3-cosmos-cmd-tlm-api/app/controllers/tables_controller.rb","openc3-cosmos-script-runner-api/app/controllers/application_controller.rb","openc3-cosmos-script-runner-api/app/controllers/scripts_controller.rb"],"commits":["https://github.com/OpenC3/cosmos/commit/a34e61aea5a465f0ab3e57d833ae7ff4cafd710b","https://github.com/OpenC3/cosmos/commit/71943352a28128ef3e7e894319d97a656b5cd4f2","https://github.com/OpenC3/cosmos/commit/7a1538a4626f82c0d1540fcaa27ffdcbbd71ff81"],"basis":"shared function","functions":["authorization","body","generate","save","save_as"]}]}]}}