Intel

AIKIDO-2026-920870

qwed-mcp is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)GHSA-2p69-jpm6-jrxh Published 2 days ago

98

Critical Risk

This Affects:

PYTHONqwed-mcp
0.0.1 - 0.2.1
Fixed in 0.2.2
Are you affected? Scan for Free

TL;DR

The verify_math_expression MCP tool parses user-supplied mathematical expressions through SymPy's expression parser inside a sandbox that relies on a regex denylist and restricted builtins. Externally supplied input can bypass it with string concatenation and untracked methods such as __getattribute__, then pivot through function objects that still expose their __globals__ to reach os.system. This lets an unauthenticated caller execute arbitrary commands on the host running the server. The fix validates the parsed AST against an allowlist, rejects string and bytes constants and attribute traversal, and normalizes input before parsing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and expose the verify_math_expression MCP tool to untrusted callers.

Background info

qwed-mcp is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 0.2.1.

How to fix this

Upgrade the qwed-mcp library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform