### [CVE-2024-46977](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-46977) ![](https://img.shields.io/static/v1?label=Product&message=cosmos&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%205.19.0%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-22%3A%20Improper%20Limitation%20of%20a%20Pathname%20to%20a%20Restricted%20Directory%20('Path%20Traversal')&color=brighgreen) ### Description 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. ### POC #### Reference - https://securitylab.github.com/advisories/GHSL-2024-127_GHSL-2024-129_OpenC3_COSMOS #### Github No PoCs found on GitHub currently.