Description
FreeCAD is a free and open-source multiplatform 3D parametric modeler. Prior to 1.1.2, the FEM Displacement Constraint task dialog in src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp passes the xDisplacementFormula, yDisplacementFormula, and zDisplacementFormula fields of a Fem::ConstraintDisplacement object through TaskDlgFemConstraintDisplacement::accept() into Gui::Command::doCommand. The escaping helper neutralizes quotation marks but not backslashes, allowing crafted formula text to terminate the generated Python string and execute arbitrary Python code with the FreeCAD process's privileges when a victim accepts the dialog. This issue is fixed in version 1.1.2.
References7
- github.com/FreeCAD/FreeCAD/commit/0a208ac11cfe7b61c424ee4bb7911…
- github.com/FreeCAD/FreeCAD/commit/3f60d202a8246958232e2fbc74ba3…
- github.com/FreeCAD/FreeCAD/pull/31267
- github.com/FreeCAD/FreeCAD/pull/31312
- github.com/FreeCAD/FreeCAD/releases/tag/1.1.2
- github.com/FreeCAD/FreeCAD/security/advisories/GHSA-2rq3-gx3h-4…
- github.com/FreeCAD/FreeCAD/security/advisories/GHSA-2rq3-gx3h-4…
Metrics
- CVSS 4.0
-
8.5
HIGH
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 10 · as of 12 November 2026
- CWE
- CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.