{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-55546","id":"CVE-2026-55546","title":"QWED-MCP: Unsafe SymPy `parse_expr()` Remote Code Execution via Unsanitized Math Expression Input","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","descriptionLong":"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.","published":"2026-08-25T15:25:34.759Z","updated":"2026-10-28T02:30:54.067936548Z","reserved":"2026-06-16T23:01:04.075Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["QWED-AI qwed-mcp"],"affectedProducts":[{"vendor":"QWED-AI","product":"qwed-mcp","defaultStatus":null,"versions":[{"version":"< 0.2.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"qwed-mcp","purl":"pkg:pypi/qwed-mcp","ranges":["<0.2.1"],"fixed":["0.2.1"],"advisory":"GHSA-mw6r-2hvm-4rp2"}],"cwes":["CWE-94"],"aliases":["GHSA-mw6r-2hvm-4rp2","PYSEC-2026-3915"],"references":[{"url":"https://github.com/QWED-AI/qwed-mcp/security/advisories/GHSA-mw6r-2hvm-4rp2","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/QWED-AI/qwed-mcp/pull/22","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/QWED-AI/qwed-mcp/commit/362e61892052e250c56cb1ee852024d6f98c467b","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/QWED-AI/qwed-mcp/releases/tag/v0.2.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55546.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55546","tags":["advisory"]},{"url":"https://github.com/QWED-AI/qwed-mcp","tags":["package"]},{"url":"https://pypi.org/project/qwed-mcp","tags":["package"]},{"url":"https://github.com/advisories/GHSA-mw6r-2hvm-4rp2","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.00726,"epssPercentile":0.54893,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-55546","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55546","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-55546","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mw6r-2hvm-4rp2","ok":true,"note":"GHSA-mw6r-2hvm-4rp2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-55546","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}