{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-55585","id":"CVE-2026-55585","title":"QWED: Authenticated Remote Code Execution via Unsafe SymPy `parse_expr()`","description":"QWED is open-source AI verification infrastructure for deterministic verification of LLM outputs, tool calls, code, schemas, and agent state before production execution. Prior to 5.1.2, the qwed package passes caller-controlled math expressions directly to SymPy parse_expr() without restricted global_dict and local_dict namespaces, allowing Python eval() to resolve builtins and execute arbitrary P","descriptionLong":"QWED is open-source AI verification infrastructure for deterministic verification of LLM outputs, tool calls, code, schemas, and agent state before production execution. Prior to 5.1.2, the qwed package passes caller-controlled math expressions directly to SymPy parse_expr() without restricted global_dict and local_dict namespaces, allowing Python eval() to resolve builtins and execute arbitrary Python code in the API server process. In src/qwed_new/api/main.py, POST /verify/math is protected by get_current_tenant but accepts any valid tenant API key, reads the expression field, applies only a cosmetic re.sub(r'(\\d)(()', r'\\1*\\2', expression) normalization, and passes the result to parse_expr(). In src/qwed_new/core/batch.py, POST /verify/batch sends math items through batch_service.create_job(), stores item.query verbatim, and _verify_item() passes VerificationType.MATH input to parse_expr() without sanitization. The default-enabled POST /auth/signup endpoint allows anyone to create a standard tenant account, POST /auth/api-keys issues an x-api-key, and either vulnerable path can then be used to read or write files, modify data, execute operating system commands, terminate the service, and compromise other tenants in a shared deployment. This issue is fixed in version 5.1.2.","published":"2026-08-25T16:23:39.334Z","updated":"2026-10-28T02:30:28.572724331Z","reserved":"2026-06-16T23:18:03.169Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["QWED-AI qwed-verification"],"affectedProducts":[{"vendor":"QWED-AI","product":"qwed-verification","defaultStatus":null,"versions":[{"version":"< 5.1.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"qwed","purl":"pkg:pypi/qwed","ranges":["<5.1.2"],"fixed":["5.1.2"],"advisory":"GHSA-q27q-98j4-9pfv"}],"cwes":["CWE-94"],"aliases":["GHSA-q27q-98j4-9pfv","PYSEC-2026-3914"],"references":[{"url":"https://github.com/QWED-AI/qwed-verification/security/advisories/GHSA-q27q-98j4-9pfv","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/QWED-AI/qwed-verification/pull/200","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/QWED-AI/qwed-verification/commit/6066b68c0c4f4cc2c3771824822aaa864d082ef8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/QWED-AI/qwed-verification/commit/dc9d4db72ca4b4ae3f96d0e6a0c27a9e38a06f61","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55585.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55585","tags":["advisory"]},{"url":"https://github.com/QWED-AI/qwed-verification","tags":["package"]},{"url":"https://pypi.org/project/qwed","tags":["package"]},{"url":"https://github.com/advisories/GHSA-q27q-98j4-9pfv","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00775,"epssPercentile":0.56554,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-55585","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55585","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-55585","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q27q-98j4-9pfv","ok":true,"note":"GHSA-q27q-98j4-9pfv"},{"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-55585","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}