CVE-2026-55585: CWE-94: Improper Control of Generation of Code ('Code Injection') in QWED-AI qwed-verification
Description
CVE-2026-55585 is a high-severity code injection vulnerability in the QWED-AI qwed-verification package prior to version 5.1.2. The vulnerability arises because user-supplied math expressions are passed directly to SymPy's parse_expr() function without restricting the global and local namespaces, allowing arbitrary Python code execution. The API endpoints /verify/math and /verify/batch accept these expressions with minimal normalization and no sanitization. An attacker with any valid tenant API key, which can be obtained via the default-enabled signup and API key issuance endpoints, can exploit this flaw to execute arbitrary code, read or write files, run OS commands, terminate the service, and compromise other tenants in shared deployments. This issue is fixed in version 5.1.2.
CVSS v3.1
Score 8.8high
Affected software
QWED-AI
qwed-verification
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The QWED-AI qwed-verification package versions prior to 5.1.2 contain a code injection vulnerability (CWE-94) due to improper control of code generation. Specifically, the qwed package passes caller-controlled math expressions directly to SymPy's parse_expr() without restricting the global_dict and local_dict namespaces, enabling Python eval() to execute arbitrary code within the API server process. The vulnerable endpoints /verify/math and /verify/batch accept expressions from authenticated tenants with minimal normalization or sanitization. The default-enabled /auth/signup and /auth/api-keys endpoints allow attackers to create tenant accounts and obtain API keys, facilitating exploitation. Successful exploitation can lead to arbitrary code execution, file system access, OS command execution, service termination, and cross-tenant compromise in shared environments. The vulnerability is resolved in version 5.1.2.
Potential Impact
An attacker with a valid tenant API key can exploit this vulnerability to execute arbitrary Python code on the API server. This can lead to full compromise of the server process, including reading and writing files, executing operating system commands, terminating the service, and compromising other tenants in a shared deployment environment. The vulnerability affects confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade to version 5.1.2 or later where this vulnerability is fixed. Until then, restrict access to tenant API keys and disable or secure the /auth/signup and /auth/api-keys endpoints to prevent unauthorized tenant creation and API key issuance. Avoid passing unsanitized user input to SymPy's parse_expr() without restricting namespaces.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T23:18:03.169Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a8dc505acd9273b4972ab4e
Added to database: 08/25/2026, 16:38:29 UTC
Last enriched: 09/10/2026, 03:37:26 UTC
Last updated: 10/09/2026, 06:48:18 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.