CVE-2026-55585

Source
https://cve.org/CVERecord?id=CVE-2026-55585
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55585.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-55585
Aliases
Published
2026-08-25T16:23:39.334Z
Modified
2026-08-30T03:31:01.230732322Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
QWED: Authenticated Remote Code Execution via Unsafe SymPy `parse_expr()`
Details

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 parseexpr() without restricted globaldict and localdict namespaces, allowing Python eval() to resolve builtins and execute arbitrary Python code in the API server process. In src/qwednew/api/main.py, POST /verify/math is protected by getcurrenttenant 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 parseexpr(). In src/qwednew/core/batch.py, POST /verify/batch sends math items through batchservice.createjob(), stores item.query verbatim, and verifyitem() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55585.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "5.1.2"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "batch_service.create_job"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-94"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/qwed-ai/qwed-verification

Affected ranges

Type
GIT
Repo
https://github.com/qwed-ai/qwed-verification
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "source": "REFERENCES"
}

Affected versions

v1.*
v1.1.0
v2.*
v2.0.0
v2.0.1
v2.1.0
v2.3.0
v2.3.1
v2.4.0
v2.4.1
v3.*
v3.0
v3.0.1
v4.*
v4.0.0
v4.0.1
v5.*
v5.0.0
v5.1.0
v5.1.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55585.json"