CVE-2024-46977 OpenC3 COSMOS allows a path traversal via screen controller (`GHSL-2024-127`)

Medium 5.3 Published Updated

An authenticated user can exploit a path traversal flaw to download arbitrary text files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-46977?

CVE-2024-46977 is a medium-severity path traversal vulnerability in OpenC3 cosmos, published on 2 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2024-46977?

5 open source packages ship an affected version, including openc3. It affects 1 product.

PackageAffectedFixed in
openc3 PyPIAll versions5.19.0
openc3 PyPIAll versions5.19.0
openc3 PyPIAll versions5.19.0
openc3 RubyGemsAll versions5.19.0
openc3 RubyGemsAll versions5.19.0

Products include Openc3 Cosmos.

How do I fix CVE-2024-46977?

Upgrade openc3 to 5.19.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-46977 being exploited?

There is no known exploitation of CVE-2024-46977 in the wild and no public exploit code.

Sources

Also known as GHSA-8jxr-mccc-mwg8, PYSEC-2024-101.

Is CVE-2024-46977 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free