Vulnerability · Published Aug 17, 2026 · Assigned by GitHub_M
CVE-2026-34789FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore
High 7.0
In plain English
A high-severity code injection in FreeCAD from FreeCAD. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | freecad | 0.20.2+dfsg1-4+deb12u1 | DEBIAN-CVE-2026-34789 |
| Debian:13 | freecad | 1.0.0+dfsg-8+deb13u3 | DEBIAN-CVE-2026-34789 |
| Debian:14 | freecad | 1.1.3+dfsg-1 | DEBIAN-CVE-2026-34789 |
| Ubuntu:22.04:LTS | freecad | no fix listed | UBUNTU-CVE-2026-34789 |
| Ubuntu:26.10 | freecad | no fix listed | UBUNTU-CVE-2026-34789 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/FreeCAD/FreeCAD/security/advisories/GHSA-493w-pp4h-h77v x_refsource_CONFIRM
- https://github.com/FreeCAD/FreeCAD/commit/81b73925ce22610542367301d8eff4259eb9596e x_refsource_MISC
- https://github.com/FreeCAD/FreeCAD/commit/983037f3003dc31f48db36705b86fb3fbe026295 x_refsource_MISC
- https://github.com/FreeCAD/FreeCAD/commit/e2dc6c8172673642c6856b8b3a5a6accefb18279 x_refsource_MISC
- https://github.com/FreeCAD/FreeCAD/releases/tag/1.1.2 x_refsource_MISC