CVE-2026-73233

FreeCAD: FEM formula incomplete escape

Published Aug 11, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from incomplete escaping of user‑supplied formulas in the FEM Displacement Constraint task dialog. The backslashes in the provided expressions are not neutralized, allowing a crafted input to terminate the generated Python string and execute arbitrary Python code within the FreeCAD process. As a result, an attacker who can provide a formula and trigger the dialog acceptance can run code with the same privileges as the user running FreeCAD, leading to full code execution on the victim machine.

Affected Systems

All releases of the FreeCAD 3D parametric modeler prior to version 1.1.2 on any supported operating system are affected. The issue resides in the Fem module, specifically the TaskFemConstraintDisplacement dialog in src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity, while the EPSS score of less than 1% suggests a low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. Because the flaw allows arbitrary Python execution when a dialog is accepted, the attack vector is local to the user’s session, but compromised credentials or remote control of the GUI could provide additional exposure. The lack of a public exploit at the time of disclosure reduces immediate threat, yet the high potential impact warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to FreeCAD 1.1.2 or newer to receive the fix that neutralizes backslashes and quotation marks.
  • If an upgrade is not yet possible, restrict the use of FEM Displacement Constraint dialogs to trusted users only and disable script execution or the TaskDlgFemConstraintDisplacement accept action until the update is applied.
  • Monitor for any reports of unauthorized Python code execution from the FEM module and apply any additional patches from FreeCAD as they become available.

Generated by OpenCVE AI on August 12, 2026 at 20:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6467-1 freecad security update
History
Type Values Removed Values Added
First Time appeared Freecad
Freecad freecad
Vendors & Products Freecad
Freecad freecad
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title FreeCAD: FEM formula incomplete escape
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 8.5, 'vector': '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'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 11, 2026, 8:09 PM
Reserved
Aug 11, 2026, 2:41 PM
Status
Awaiting Analysis
Published
Aug 11, 2026, 8:18 PM
Modified
Sep 9, 2026, 8:50 PM