CVE-2026-34789 FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore

High 7.0 Published Updated

Attackers can execute arbitrary code by tricking users into opening a crafted FreeCAD document that exploits unsafe Python module imports.

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
Available

What is CVE-2026-34789?

CVE-2026-34789 is a high-severity code injection vulnerability in FreeCAD, published on 17 Aug 2026. 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

FreeCAD is a free and open-source multiplatform 3D parametric modeler. Prior to 1.1.2, src/App/PropertyPythonObject.cpp in PropertyPythonObject::Restore() passes the attacker-controlled module attribute from serialized PropertyPythonObject XML directly to PyImport_ImportModule() while restoring a crafted FCStd document, which executes module-level Python code, and the legacy pickle branch also imports an attacker-controlled module and invokes its class constructor through PyObject_CallObject(). This issue is fixed in version 1.1.2.

Weakness: CWE-94

Which versions are affected by CVE-2026-34789?

How do I fix CVE-2026-34789?

Upgrade to a fixed version.

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

Is CVE-2026-34789 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34789 exists.

Sources

Also known as DEBIAN-CVE-2026-34789, GHSA-493w-pp4h-h77v, UBUNTU-CVE-2026-34789.

Is CVE-2026-34789 in your software?

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

Check your SBOMs for free