{"id":"CVE-2026-34789","aliases":["DEBIAN-CVE-2026-34789","EUVD-2026-60454","GHSA-493w-pp4h-h77v","UBUNTU-CVE-2026-34789"],"status":"published","title":"FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore","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.","severity":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00196,"percentile":0.09388,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2026-08-17T20:47:52Z","modified":"2026-10-28T10:49:10Z","fixes":[{"ecosystem":"Debian:12","package":"freecad","fixed_in":["0.20.2+dfsg1-4+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"freecad","fixed_in":["1.0.0+dfsg-8+deb13u3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"freecad","fixed_in":["1.1.3+dfsg-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.2+dfsg1-4+deb12u1"}]}],"versions":["0.20.2+dfsg1-4"]},{"source":"osv","ecosystem":"Debian:13","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0+dfsg-8+deb13u3"}]}],"versions":["1.0.0+dfsg-8","1.0.0+dfsg-8+deb13u1","1.0.0+dfsg-8+deb13u2"]},{"source":"osv","ecosystem":"Debian:14","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.3+dfsg-1"}]}],"versions":["1.0.0+dfsg-8","1.0.2+dfsg-1","1.0.2+dfsg-2","1.0.2+dfsg-3","1.0.2+dfsg-4","1.0.2+dfsg-5","1.0.2+dfsg-6","1.0.2+dfsg-7","1.0.2+dfsg-8~exp1","1.1.0+dfsg-1","1.1.0+dfsg-2","1.1.0+dfsg-2~exp1","1.1.1+dfsg-1","1.1.1+dfsg-2","1.1.1+dfsg-2~exp1","1.1.1+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.14.3702+dfsg-4","0.15.4671+dfsg1-1","0.15.4671+dfsg1-2","0.15.4671+dfsg1-3","0.15.4671+dfsg1-4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.16+dfsg2-3","0.16+dfsg2-3build3","0.16.6712+dfsg1-1","0.16.6712+dfsg1-1ubuntu1","0.16.6712+dfsg1-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18.3+dfsg1-1","0.18.3+dfsg1-4","0.18.4+dfsg1-1","0.18.4+dfsg1-2~build1","0.18.4+dfsg1-2","0.18.4+dfsg1-2ubuntu8","0.18.4+dfsg2-1ubuntu1","0.18.4+dfsg2-1ubuntu2","0.18.4+dfsg2-1ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.19.1+dfsg1-2","0.19.2+dfsg1-3","0.19.2+dfsg1-3ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"freecad","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1+dfsg-3","1.1.1+dfsg-3build1","1.1.3+dfsg-3build1"]}],"products":[{"vendor":"freecad","product":"freecad"}],"references":[{"url":"https://github.com/FreeCAD/FreeCAD/security/advisories/GHSA-493w-pp4h-h77v","tags":["x_refsource_CONFIRM","exploit","advisory","report"]},{"url":"https://github.com/FreeCAD/FreeCAD/commit/81b73925ce22610542367301d8eff4259eb9596e","tags":["x_refsource_MISC","fix","report"]},{"url":"https://github.com/FreeCAD/FreeCAD/commit/983037f3003dc31f48db36705b86fb3fbe026295","tags":["x_refsource_MISC","fix","report"]},{"url":"https://github.com/FreeCAD/FreeCAD/commit/e2dc6c8172673642c6856b8b3a5a6accefb18279","tags":["x_refsource_MISC","fix","report"]},{"url":"https://github.com/FreeCAD/FreeCAD/releases/tag/1.1.2","tags":["x_refsource_MISC","web","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34789.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34789","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-34789","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-34789","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-34789","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-34789","title":"FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore","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.","status":"published","published":"2026-08-17T20:47:52.373Z","modified":"2026-08-19T03:56:12.224Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:20:14.665567Z"}],"euvd":[{"id":"EUVD-2026-60454","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.","status":"published","published":"2026-08-17T20:47:52Z","modified":"2026-08-19T03:56:12Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T18:01:45.709762Z"}],"nvd":[{"id":"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.","status":"published","published":"2026-08-17T21:16:44.403Z","modified":"2026-09-09T21:11:25.743Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:12:38.647684Z"}],"osv":[{"id":"CVE-2026-34789","title":"FreeCAD: Arbitrary code execution via unsandboxed PyImport_ImportModule in PropertyPythonObject::Restore","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.","status":"published","published":"2026-08-17T20:47:52.373Z","modified":"2026-10-28T10:49:10.041201406Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:45:02.673625Z"},{"id":"DEBIAN-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.","status":"published","published":"2026-08-17T21:16:44.403Z","modified":"2026-10-03T19:00:44.683212423Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:54.587575Z"},{"id":"UBUNTU-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.","status":"published","published":"2026-08-17T21:16:00Z","modified":"2026-10-17T12:58:12.055097681Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:16.036833Z"}]}}
