<Vulnerability name="CVE-2026-34789">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-08-17T20:47:52</PublicDate>
    <Bugzilla id="2517629" url="https://bugzilla.redhat.com/show_bug.cgi?id=2517629" xml:lang="en:us">
FreeCAD: FreeCAD: Arbitrary code execution via crafted document restoration
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.8</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-502</CWE>
    <Details xml:lang="en:us" source="Mitre">
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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in FreeCAD, a 3D parametric modeler. A remote attacker could exploit this vulnerability by tricking a user into opening a specially crafted FCStd document. When the document is restored, attacker-controlled module attributes are processed, leading to the execution of arbitrary Python code. This could result in a complete system compromise.
    </Details>
    <Statement xml:lang="en:us">
This Important vulnerability in FreeCAD allows for arbitrary code execution when a user opens a specially crafted FCStd document. While user interaction is required, the low attack complexity and potential for complete system compromise elevate the risk, making it more severe than a Moderate flaw.
    </Statement>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-34789
https://nvd.nist.gov/vuln/detail/CVE-2026-34789
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
https://github.com/FreeCAD/FreeCAD/security/advisories/GHSA-493w-pp4h-h77v
    </References>
</Vulnerability>