Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-55546— QWED-MCP: Unsafe SymPy `parse_expr()` Remote Code Execution via Unsanitized Math Expression Input

Quick assessment

Affected
QWED-AI qwed-mcp
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

QWED-MCP是QWED组织的一款机器学习模型上下文协议工具。 QWED-MCP 0.2.1之前版本存在代码注入漏洞,该漏洞源于src/qwed_mcp/engines/math_engine.py文件中的verify_math_expression()函数将攻击者控制的expression和claimed_result参数直接传递给SymPy的parse_expr()处理,且未限制global_dict、移除Python内置函数或验证表达式AST,可能导致攻击者利用Python导入功能执行任意操作系统

CVSS 9.8 · Critical EPSS 0.73% · P54

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
QWED-AI qwed-mcp < 0.2.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-55546

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
QWED-MCP: Unsafe SymPy `parse_expr()` Remote Code Execution via Unsanitized Math Expression Input
Source: CVE Program / CVE List V5
Vulnerability Description
QWED-MCP is a deterministic verification gateway for MCP. Prior to 0.2.1, verify_math_expression() in src/qwed_mcp/engines/math_engine.py passes attacker-controlled expression and claimed_result strings directly to SymPy's parse_expr() after only normalizing caret syntax to Python exponent syntax, without restricting global_dict, removing Python built-ins, or validating the expression AST. Because parse_expr() calls Python's eval() with built-ins available, an attacker who can cause a downstream caller to pass untrusted input to this public library function can use Python import functionality to execute arbitrary operating-system commands as the qwed-mcp process user, read or modify accessible data, exfiltrate process secrets, or reach internal services. The default MCP tool registry does not expose verify_math_expression(), so exploitation requires a downstream integration that invokes the library API with attacker-controlled input. This issue is fixed in version 0.2.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
QWED-MCP 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
QWED-MCP是QWED组织的一款机器学习模型上下文协议工具。 QWED-MCP 0.2.1之前版本存在代码注入漏洞,该漏洞源于src/qwed_mcp/engines/math_engine.py文件中的verify_math_expression()函数将攻击者控制的expression和claimed_result参数直接传递给SymPy的parse_expr()处理,且未限制global_dict、移除Python内置函数或验证表达式AST,可能导致攻击者利用Python导入功能执行任意操作系统
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
QWED-AI qwed-mcp < 0.2.1 -

II. Public POCs for CVE-2026-55546

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7882 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-55546

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-55546 (3)

Vendor Advisories for CVE-2026-55546 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-55546

No comments yet


Leave a comment