CVE-2026-34399 FreeCAD: Arbitrary Code Execution via eval() on untrusted SVG template scale field in BIM TechDraw Page
Attackers can execute arbitrary Python code by tricking users into opening malicious SVG templates in FreeCAD's BIM Workbench.
- 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-34399?
CVE-2026-34399 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. From 0.19 until 1.1.1, FreeCAD's BIM Workbench contains an eval() call on untrusted data from SVG template files. When a user creates a TechDraw page from a malicious SVG template, arbitrary Python code executes. The vulnerable code is in src/Mod/BIM/bimcommands/BimTDPage.py (line 87). This issue is fixed in version 1.1.1.
Weakness: CWE-95
Which versions are affected by CVE-2026-34399?
How do I fix CVE-2026-34399?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-34399 being exploited?
There is no known exploitation of CVE-2026-34399 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-34399, GHSA-chv4-vm6r-wjqj, UBUNTU-CVE-2026-34399.