FreeCAD
FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.1.2
Fixed in 1.1.2
Mitigation
Upgrade FreeCAD to 1.1.2 or later.
References
- Vendor advisory github.com/FreeCAD/FreeCAD/security/advisories…
- Patch github.com/FreeCAD/FreeCAD/commit/81b73925ce22…
- Patch github.com/FreeCAD/FreeCAD/commit/983037f3003d…
2 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.