Skip to content
FlawDB
Sign in

CVE-2026-141546

MEDIUM 5.0

KiCad MCP Pro: Variant export tools write outside KICAD_MCP_WORKSPACE_ROOT via unvalidated variant and output_name arguments

Also known as GHSA-wfmg-598x-58c5

AI summary AI generated

An attacker who can invoke KiCad MCP Pro variant export tools can use path traversal or absolute paths to write and overwrite files outside the configured workspace root.

Mitigation

  • Upgrade kicad-mcp-pro to 4.20.1 or later.

Who should check

  • Projects that depend on PyPI package kicad-mcp-pro (<= 4.20.0)
  • Anyone running oaslananka kicad-mcp-pro < 4.20.1

Vulnerability facts

Affected
kicad-mcp-pro <= 4.20.0
Fixed in
4.20.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
CWE
CWE-22
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI kicad-mcp-pro<= 4.20.04.20.1ghsa
oaslananka kicad-mcp-pro< 4.20.1—cvelist

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: kicad-mcp-pro Prior to 4.20.1 Prior to 4.20.1
  • Fixed: kicad-mcp-pro 4.20.1 This issue is fixed in version 4.20.1.

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-141546. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141546.md
Affected: kicad-mcp-pro <= 4.20.0
Fixed in: 4.20.1

Steps:
1. Search this machine and project for kicad-mcp-pro (PyPI), oaslananka kicad-mcp-pro: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-141546 being exploited?

There is no confirmed exploitation: CVE-2026-141546 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-141546?

Medium: CVSS 5.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-141546?

kicad-mcp-pro <= 4.20.0.

Is there a fix for CVE-2026-141546?

Yes. Fixed in 4.20.1. Upgrade kicad-mcp-pro to 4.20.1 or later.

How do I check if I'm affected by CVE-2026-141546?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors