Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-45845

The Path Sanity Check script of FreeCAD 0.19 is vulnerable to OS command injection, allowing an attacker to execute arbitrary commands via a crafted FCStd document.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-45845
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:05 UTC · Revision 1

Source evidence

CVE-2021-45845

core-osv · Original source

Published 25 Jan 2022, 13:15 UTC

The Path Sanity Check script of FreeCAD 0.19 is vulnerable to OS command injection, allowing an attacker to execute arbitrary commands via a crafted FCStd document.

osv:CVE-2021-45845
Complete source record
{
  "id": "0653fa2dd46692dac46227020a6ef3321dbcd0f60d4f3fbd9d5d87fa5b2cd61b",
  "url": "https://osv.dev/vulnerability/CVE-2021-45845",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-45845",
    "summary": "The Path Sanity Check script of FreeCAD 0.19 is vulnerable to OS command injection, allowing an attacker to execute arbitrary commands via a crafted FCStd document.",
    "evidence": "osv:CVE-2021-45845",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-45845",
      "aliases": [
        "CVE-2021-45845"
      ],
      "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"
                },
                {
                  "last_affected": "d29fd7d9cb9fb280a1eb47f55e3c73c46d637ba2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:freecadweb:freecad:0.19:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.19"
                      },
                      {
                        "last_affected": "0.19"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.19"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45845.json"
          }
        }
      ],
      "modified": "2026-10-20T10:57:48.316231624Z",
      "provider": "osv",
      "references": [
        "https://www.debian.org/security/2022/dsa-5229",
        "https://github.com/FreeCAD/FreeCAD/pull/5306",
        "https://tracker.freecad.org/view.php?id=4810"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "11.0"
                  },
                  {
                    "last_affected": "11.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-45845",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387104,
  "published_at": "2022-01-25T13:15:08.037+00:00"
}