CVE-2024-8374 Arbitrary Code Injection in Cura

High 7.8 Published Updated

Attackers can execute arbitrary code by tricking users into opening malicious 3MF files in Cura due to unsafe eval usage.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-8374?

CVE-2024-8374 is a high-severity code injection vulnerability in Ultimaker Cura, published on 3 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

UltiMaker Cura slicer versions 5.7.0-beta.1 through 5.7.2 are vulnerable to code injection via the 3MF format reader (/plugins/ThreeMFReader.py). The vulnerability arises from improper handling of the drop_to_buildplate property within 3MF files, which are ZIP archives containing the model data. When a 3MF file is loaded in Cura, the value of the drop_to_buildplate property is passed to the Python eval() function without proper sanitization, allowing an attacker to execute arbitrary code by crafting a malicious 3MF file. This vulnerability poses a significant risk as 3MF files are commonly shared via 3D model databases.

Weakness: CWE-94

Which versions are affected by CVE-2024-8374?

It affects 1 product.

Products include Ultimaker Ultimaker Cura.

How do I fix CVE-2024-8374?

No fix has been published for CVE-2024-8374 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-8374 being exploited?

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

Sources

Also known as GHSA-rvg9-cwv8-3543, UBUNTU-CVE-2024-8374.

Is CVE-2024-8374 in your software?

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

Check your SBOMs for free