FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA FreeCAD (FreeCAD) Fixed in 1.1.2
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34789
References
Other 5
- https://github.com/FreeCAD/FreeCAD/security/advisories/GHSA-493w-pp4h-h77v
- https://github.com/FreeCAD/FreeCAD/commit/81b73925ce22610542367301d8eff4259eb9596e
- https://github.com/FreeCAD/FreeCAD/commit/983037f3003dc31f48db36705b86fb3fbe026295
- https://github.com/FreeCAD/FreeCAD/commit/e2dc6c8172673642c6856b8b3a5a6accefb18279
- https://github.com/FreeCAD/FreeCAD/releases/tag/1.1.2
More FreeCAD vulnerabilities
- TI-2026-51370 FreeCAD: FEM formula incomplete escape CVSS 4.0HIGH 8.5
- TI-2026-51371 Path traversal in FreeCAD CVSS 3.1HIGH 7.8
- TI-2026-26684 FreeCAD: Arbitrary Code Execution via eval() on untrusted project file metadata in BIM Workbench CVSS 3.1HIGH 7.8
- TI-2026-26685 FreeCAD: Arbitrary Code Execution via eval() on untrusted SVG template scale field in BIM TechDraw Page CVSS 3.1HIGH 7.8
- TI-2026-51372 FreeCAD: XXE file read and SSRF via external entity injection in Document.xml SAX parser CVSS 3.1MEDIUM 6.1
Sources
- CVE-2026-34789 · CVE Program
- CVE-2026-34789 · NVD
- FIRST EPSS
- CVE-2026-34789 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences