Skip to content
Heist/ feed
Back to feed
High

FreeCAD: Arbitrary Code Execution via eval() on untrusted SVG template scale field in BIM TechDraw Page

Type: advisorySources: OSV

FreeCAD is a free and open-source multiplatform 3D parametric modeler. From 0.19 until 1.1.1, FreeCAD's BIM Workbench contains an eval() call on untrusted data from SVG template files. When a user creates a TechDraw page from a malicious SVG template, arbitrary Python code executes. The vulnerable code is in src/Mod/BIM/bimcommands/BimTDPage.py (line 87). This issue is fixed in version 1.1.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-34399
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:48 UTC · Revision 1

Source evidence

FreeCAD: Arbitrary Code Execution via eval() on untrusted SVG template scale field in BIM TechDraw Page

core-osv · Original source

Published 17 Aug 2026, 20:50 UTC

FreeCAD is a free and open-source multiplatform 3D parametric modeler. From 0.19 until 1.1.1, FreeCAD's BIM Workbench contains an eval() call on untrusted data from SVG template files. When a user creates a TechDraw page from a malicious SVG template, arbitrary Python code executes. The vulnerable code is in src/Mod/BIM/bimcommands/BimTDPage.py (line 87). This issue is fixed in version 1.1.1.

osv:CVE-2026-34399
Complete source record
{
  "id": "d1b8dd2185bf49a39da7abddeebf74089d9bc071f68522546ce19975047132a7",
  "url": "https://osv.dev/vulnerability/CVE-2026-34399",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "FreeCAD: Arbitrary Code Execution via eval() on untrusted SVG template scale field in BIM TechDraw Page",
    "summary": "FreeCAD is a free and open-source multiplatform 3D parametric modeler. From 0.19 until 1.1.1, FreeCAD's BIM Workbench contains an eval() call on untrusted data from SVG template files. When a user creates a TechDraw page from a malicious SVG template, arbitrary Python code executes. The vulnerable code is in src/Mod/BIM/bimcommands/BimTDPage.py (line 87). This issue is fixed in version 1.1.1.",
    "evidence": "osv:CVE-2026-34399",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-34399",
      "aliases": [
        "CVE-2026-34399",
        "GHSA-chv4-vm6r-wjqj"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/freecad/freecad",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d29fd7d9cb9fb280a1eb47f55e3c73c46d637ba2"
                },
                {
                  "fixed": "0108fd4b4850cc46e625b60e53cea7a7bbe69f8d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.19"
                      },
                      {
                        "fixed": "1.1.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0108fd4b4850cc46e625b60e53cea7a7bbe69f8d"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "1.1.1"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.1.1"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.1.0",
            "1.1rc3",
            "1.1rc2",
            "1.1rc1",
            "weekly-2025.11.12",
            "weekly-2025.11.05",
            "weekly-2025.11.02",
            "weekly-2025.10.31",
            "weekly-2025.10.29",
            "weekly-2025.10.22",
            "weekly-2025.10.15",
            "weekly-2025.10.08",
            "weekly-2025.10.01",
            "weekly-2025.09.24",
            "weekly-2025.09.17",
            "weekly-2025.09.12",
            "weekly-2025.09.11",
            "weekly-2025.09.10",
            "weekly-2025.09.03",
            "weekly-2025.08.27",
            "weekly-2025.08.20",
            "weekly-2025.08.13",
            "weekly-2025.08.07",
            "weekly-2025.08.05",
            "weekly-2025.08.04",
            "weekly-2025.07.29",
            "weekly-2025.07.28",
            "weekly-2025.07.26",
            "weekly-2025.07.25",
            "weekly-2025.07.24",
            "weekly-2025.07.21",
            "weekly-2025.07.14",
            "weekly-2025.07.07",
            "weekly-2025.06.30",
            "weekly-2025.06.23",
            "weekly-2025.06.16",
            "weekly-2025.06.09",
            "weekly-2025.06.02",
            "weekly-2025.05.26",
            "weekly-2025.05.19",
            "weekly-2025.05.13",
            "weekly-2025.05.02",
            "weekly-2025.05.06",
            "weekly-2025.04.28",
            "weekly-2025.04.21",
            "0.21rc1",
            "0.20",
            "0.20beta1",
            "0.19"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34399.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.217190367Z",
      "provider": "osv",
      "references": [
        "https://github.com/FreeCAD/FreeCAD/releases/tag/1.1.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34399.json",
        "https://github.com/FreeCAD/FreeCAD/security/advisories/GHSA-chv4-vm6r-wjqj",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-34399"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-95"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34399.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-34399",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504262,
  "published_at": "2026-08-17T20:50:19.829+00:00"
}