# CVE-2024-46977: OpenC3 Path Traversal via screen controller (`GHSL-2024-127`)

Source: https://junglewise.ai/threats/cve-2024-46977-openc3-path-traversal-via-screen-controller-ghsl-2024-127  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-02  
License: CC BY 4.0 with a link back

CVE-2024-46977 · Severity: low · CVSS 3.1 · Published 2024-10-02

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.

Technologies: [openc3 (PyPI)](https://junglewise.ai/threats/technologies/pypi-openc3), [openc3 (RubyGems)](https://junglewise.ai/threats/technologies/openc3). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi), [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2024-46977 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-46977 being exploited in the wild.

**How severe is CVE-2024-46977?** Low severity, with a CVSS score of 3.1, published 2 October 2024.

**Which products and versions are affected?** openc3 (PyPI) GIT:introduced=0,fixed=a34e61aea5a465f0ab3e57d833ae7ff4cafd710b|ECOSYSTEM:introduced=0,fixed=5.19.0; openc3 (RubyGems) ECOSYSTEM:introduced=0,fixed=5.19.0.

**Is there a fix for CVE-2024-46977?** Yes. openc3 (PyPI): upgrade to 5.19.0 or later; openc3 (RubyGems): upgrade to 5.19.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-46977?** Check whether you run openc3 (PyPI) or openc3 (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- openc3 (PyPI): upgrade to 5.19.0 or later

  ```sh
  pip install "openc3>=5.19.0"
  ```

- openc3 (RubyGems): upgrade to 5.19.0 or later

  ```sh
  bundle update openc3
  ```


## Affected products

- openc3 (PyPI) GIT:introduced=0,fixed=a34e61aea5a465f0ab3e57d833ae7ff4cafd710b|ECOSYSTEM:introduced=0,fixed=5.19.0
- openc3 (RubyGems) ECOSYSTEM:introduced=0,fixed=5.19.0

## Identifiers

- CVE-2024-46977
- GHSA-8jxr-mccc-mwg8
- PYSEC-2024-101

## Related threats

- [OpenC3 COSMOS authenticated remote code execution via config overlay](https://junglewise.ai/threats/cve-2026-77602-openc3-cosmos-authenticated-remote-code-execution-via-config)
- [OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. From 5.12.0 until 7.](https://junglewise.ai/threats/cve-2026-77601-openc3-cosmos-authenticated-os-command-injection-via-pypi-url)
- [OpenC3 COSMOS privilege escalation via Script Runner API bypass](https://junglewise.ai/threats/cve-2026-42088-openc3-cosmos-privilege-escalation-via-script-runner-api-bypass)
- [OpenC3 COSMOS SQL injection in QuestDB Time-Series Database](https://junglewise.ai/threats/cve-2026-42087-openc3-cosmos-sql-injection-in-questdb-time-series-database)
- [OpenC3 COSMOS Self-XSS in Command Sender](https://junglewise.ai/threats/cve-2026-42086-openc3-cosmos-self-xss-in-command-sender)
