Skip to main content

KiCad MCP Pro CVE-2026-141546

| EUVDEUVD-2026-141812 MEDIUM
Path Traversal (CWE-22)
2026-12-02 GitHub_M GHSA-wfmg-598x-58c5
5.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Invoke variant export MCP tool
  2. Exploit
    Supply traversal or absolute variant/output_name
  3. Execution
    Path joined after workspace check
  4. Impact
    Write or overwrite files outside workspace root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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

Exploitation Conditions

Exploitation requires three concrete prerequisites: (1) the ability to invoke the MCP tools variant_export_bom, variant_export_schematic or variant_export_manufacturing_package; (2) a schematic-capable profile - these tools are NOT in the 'default' profile and appear only in profiles such as agent_full, builder, critic, expert, full, power, schematic, schematic_authoring, schematic_only and simulation (the project's .env.example documents KICAD_MCP_PROFILE=full); and (3) an active project. The attacker supplies a variant or output_name value containing path traversal ('../') or an absolute path; with output_name the caller controls the entire final path component, while variant gets a suffix such as _bom.csv or _gerber appended. Limiting factors: it is a local stdio server (AV:L), the vulnerable tools are gated behind non-default profiles, it requires invocation privileges (PR:L) plus an active project and a running schematic-capable operator/agent, and impact is integrity-only (no read or confidentiality primitive was found). Windows drive and UNC path forms were not verified by the reporter.

Impact

This is a medium-severity, operator/agent-dependent path-traversal (CWE-22), not an emergency. The CVSS vector CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N (5.0) is internally consistent with the description: a local stdio MCP server, low attack complexity, requiring privileges to invoke the tools (PR:L) and an operator/agent precondition (UI:R), with integrity-only impact (I:H) from writing or overwriting files outside KICAD_MCP_WORKSPACE_ROOT and no confidentiality (C:N) or availability (A:N) impact. The vuln.today Decision label is 'this_month' - a real but non-urgent priority. No KEV listing and no EPSS score are present in the input, so there is no signal of active or widespread exploitation. A detailed public PoC/reproduction is embedded in the GHSA advisory, but it is not packaged as standalone weaponized exploit code, and POC availability must not be conflated with active exploitation. There is no SSVC decision block beyond the vendor priority label. The signals do not conflict: a config- and agent-gated local integrity flaw in a niche product, with a clear fix, warrants scheduled patching rather than crisis response. One nuance worth verifying: the realistic attacker model in the advisory is prompt injection steering an AI agent (from a datasheet, component description or project file), which could make exploitation effectively require no human click for an autonomous agent - the UI:R metric reflects the schematic-capable-profile precondition rather than a classic click-through, so teams running autonomous agents should treat the UI gate as weaker than the vector implies.

Exploit ScenarioDerived

An AI agent connected to KiCad MCP Pro is steered - for example via prompt injection embedded in a datasheet, component description or project file - to call variant_export_bom, variant_export_schematic or variant_export_manufacturing_package with a crafted variant or output_name containing '../' traversal or an absolute path. Because the attacker-controlled string is joined onto the output directory after the workspace check, the server creates directories and writes or overwrites files anywhere the process can reach, outside the configured workspace root. A public PoC in the GHSA advisory demonstrates overwriting a pre-existing file and writing to absolute paths outside the root with no KiCad installed.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Unvalidated path arguments in three variant export tools of KiCad MCP Pro 4.20.0 and earlier let anyone who can call those tools write, overwrite, or create directories outside the configured KICAD_MCP_WORKSPACE_ROOT by supplying a traversal sequence or an absolute path as the variant or output_name value. The impact is integrity-only (no read primitive was found), and exploitation needs a schematic-capable MCP profile that does not ship in the default set, an active project, and a caller able to invoke the tools, which is why the reporter scored it Medium at 5.0 rather than High. Fixed in 4.20.1 via a shared path guard (PR #1806); a reproduction procedure is published in the GitHub advisory, but no confirmed working exploit package or active exploitation is reported, and this is not an emergency for most deployments.

RemediationAI

Upgrade kicad-mcp-pro to 4.20.1 or later, the version in which the shared _safe_variant_export_path guard was added across variant_export_bom, variant_export_schematic and variant_export_manufacturing_package; the release is tagged https://github.com/oaslananka/kicad-mcp-pro/releases/tag/mcp-server-v4.20.1, with the fix in PR https://github.com/oaslananka/kicad-mcp-pro/pull/1806 and commit 1ddb8ce1d3a8a67d4670f947a582d07c9ba29130. If upgrading is not immediately possible, reduce exposure by running the server with KICAD_MCP_PROFILE=default, since none of the three variant export tools are registered in that profile, and by not enabling the schematic-capable profiles (full, schematic, expert, builder and the rest) for agents that process untrusted content such as datasheets or third-party project files; the trade-off is that variant BOM, schematic and manufacturing-package export functionality is unavailable in that configuration. Note that the workspace-root validation and the existing ensure_output_dir check in the affected versions do not block these arguments, so relying on KICAD_MCP_WORKSPACE_ROOT alone is insufficient until the patched release is deployed.

Affected VersionsENISA

kicad-mcp-pro < 4.20.1

Affected Packages

pypi kicad-mcp-pro fix: 4.20.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

KiCad MCP Pro is a Python MCP server (distributed on PyPI as kicad-mcp-pro) that exposes KiCad schematic and PCB operations to AI agents; the vulnerable tools live in src/kicad_mcp/tools/variants.py. The flaw is CWE-22: variant_export_bom, variant_export_schematic and variant_export_manufacturing_package build their destination with pathlib joins such as out_dir / f"{variant}_bom.{fmt}" and out_dir / (output_name or f"{variant}_manufacturing.json"). Because pathlib preserves '..' segments and an absolute right-hand operand replaces the base entirely, the attacker-controlled argument determines the final write location. The existing cfg.ensure_output_dir("variants") check is not a mitigation here: it validates the literal subdirectory string only, and the hostile value is appended afterwards. The variant name itself is accepted at variant_create with just a non-empty check and stored verbatim as a JSON key, so nothing rejects traversal at creation time. The project already contains the missing guard in adjacent modules - export/board_stats.py rejects output names whose relative path contains a separator, and tools/footprint.py, tools/symbol.py and tools/jobset.py use the Path(...).name idiom - and resolve_under was imported into variants.py but used only for the import path. The 4.20.1 fix introduces _safe_variant_export_path, which rejects empty names, '.', '..', and any value containing '/', '\\', ':' or NUL, then delegates to resolve_under(output_dir, filename, allow_absolute=False); regression tests cover traversal, absolute POSIX and Windows drive/UNC-style strings, and nested separators.

Know when Kicad Mcp Pro 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 5.0 MEDIUM
AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
vuln.today AI 5.0 MEDIUM

Local stdio server (AV:L); requires privilege to call non-default-profile tools (PR:L) and an operator running a schematic-capable profile on an active project (UI:R); arbitrary file write/overwrite gives I:H with no read primitive (C:N) and no availability loss (A:N).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Dec 02, 2026 - 20:04 EUVD

DescriptionCVE.org

KiCad MCP Pro is an MCP server connecting AI agents to KiCad schematic and PCB workflows. Prior to 4.20.1, variant_export_bom, variant_export_schematic, and variant_export_manufacturing_package in src/kicad_mcp/tools/variants.py join unvalidated variant or output_name values to the output directory after the workspace check. A caller able to invoke these tools can use traversal or an absolute path to create directories or write and overwrite files outside KICAD_MCP_WORKSPACE_ROOT. Exploitation requires an active project and a schematic-capable profile; the tools are not in the default profile. No confidentiality impact is claimed. This issue is fixed in version 4.20.1.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Rare
obscure single-maintainer PyPI MCP server, tiny specialized EDA footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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