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

CVE-2026-34789 is fixed in 2 products on 2 platforms, first by FreeCAD 1.1.2, released July 23, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-34789
- Priority: High
- CVSS: 7.0 (high)
- EPSS: 0.0020
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 17, 2026
- Weakness: CWE-94: Improper Control of Generation of Code ('Code Injection')
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-34789

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | FreeCAD | 1.1.2 | [FreeCAD 1.1.2](https://patchblox.com/security/data/fix/windows-app/freecad.freecad-1.1.2.md) | Jul 23, 2026 |
| Linux | freecad Debian 12.15 (bookworm) | 0.20.2+dfsg1-4+deb12u1 | [DEBIAN-CVE-2026-34789](https://patchblox.com/security/data/fix/linux/debian-cve-2026-34789.md) | Aug 27, 2026 |
| Linux | freecad Debian 13.5 (trixie) | 1.0.0+dfsg-8+deb13u3 | [DEBIAN-CVE-2026-34789](https://patchblox.com/security/data/fix/linux/debian-cve-2026-34789.md) | Aug 27, 2026 |
| Linux | freecad Debian 14 | 1.1.3+dfsg-1 | [DEBIAN-CVE-2026-34789](https://patchblox.com/security/data/fix/linux/debian-cve-2026-34789.md) | Aug 27, 2026 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
