{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-55585","published":"2026-08-25T17:17:32.903000Z","last_modified":"2026-09-09T21:07:31.353000Z","status":"Deferred","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["qwed-ai"],"products":["qwed-ai/qwed-verification"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-q27q-98j4-9pfv","ecosystem":"PyPI","name":"qwed","purl":"pkg:pypi/qwed","ranges":[{"introduced":"0","fixed":"5.1.2"}],"versions":["0.1.0","2.0.0","2.0.1","2.1.0","2.2.0","2.3.0","2.4.0","2.4.1","3.0.1","4.0.0","4.0.1","5.0.0","5.1.0","5.1.1"],"versions_truncated":false},{"advisory":"PYSEC-2026-3914","ecosystem":"PyPI","name":"qwed","purl":"pkg:pypi/qwed","ranges":[{"introduced":"0","fixed":"5.1.2"}],"versions":["0.1.0","2.0.0","2.0.1","2.1.0","2.2.0","2.3.0","2.4.0","2.4.1","3.0.1","4.0.0","4.0.1","5.0.0","5.1.0","5.1.1"],"versions_truncated":false}],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2026-55585/","html_en":"/en/cve/CVE-2026-55585/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-55585","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-55585"},"untrusted":{"vendor_name":"QWED-AI","product_name":"qwed-verification","desc_en":"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.","affected":[{"untrusted_vendor":"QWED-AI","untrusted_product":"qwed-verification","versions":[]}],"references":[{"url":"https://github.com/QWED-AI/qwed-verification/commit/6066b68c0c4f4cc2c3771824822aaa864d082ef8","tags":[]},{"url":"https://github.com/QWED-AI/qwed-verification/commit/dc9d4db72ca4b4ae3f96d0e6a0c27a9e38a06f61","tags":[]},{"url":"https://github.com/QWED-AI/qwed-verification/pull/200","tags":[]},{"url":"https://github.com/QWED-AI/qwed-verification/security/advisories/GHSA-q27q-98j4-9pfv","tags":[]}]}}