← Back to CVE Explorer

CVE-2026-31225

Full vulnerability record from the local CVENow database.

Description

The superduper project thru v0.10.0 contains a critical remote code execution vulnerability in its query parsing component. The _parse_op_part() function in query.py uses the unsafe eval() function to dynamically evaluate user-supplied query operands without proper sanitization or restriction. Although the function attempts to limit the execution context by providing a restricted global namespace, it does not block access to dangerous built-in functions. A remote attacker can exploit this by submitting a specially crafted query string containing Python code that imports modules (e.g., os) and executes arbitrary system commands, leading to complete compromise of the server.

Severity
HIGH
CVSS score
8.8 (v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-05-12 16:16:14.430000
Last modified
2026-10-19 22:10:00.130000
View original CVE JSON
{
  "id": "CVE-2026-31225",
  "sourceIdentifier": "[email protected]",
  "published": "2026-05-12T16:16:14.430",
  "lastModified": "2026-10-19T22:10:00.130",
  "vulnStatus": "Awaiting Analysis",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "The superduper project thru v0.10.0 contains a critical remote code execution vulnerability in its query parsing component. The _parse_op_part() function in query.py uses the unsafe eval() function to dynamically evaluate user-supplied query operands without proper sanitization or restriction. Although the function attempts to limit the execution context by providing a restricted global namespace, it does not block access to dangerous built-in functions. A remote attacker can exploit this by submitting a specially crafted query string containing Python code that imports modules (e.g., os) and executes arbitrary system commands, leading to complete compromise of the server."
    },
    {
      "lang": "es",
      "value": "El proyecto superduper hasta la v0.10.0 contiene una vulnerabilidad crítica de ejecución remota de código en su componente de análisis de consultas. La función _parse_op_part() en query.py utiliza la función insegura eval() para evaluar dinámicamente operandos de consulta proporcionados por el usuario sin una sanitización o restricción adecuada. Aunque la función intenta limitar el contexto de ejecución al proporcionar un espacio de nombres global restringido, no bloquea el acceso a funciones integradas peligrosas. Un atacante remoto puede explotar esto al enviar una cadena de consulta especialmente diseñada que contiene código Python que importa módulos (p. ej., os) y ejecuta comandos de sistema arbitrarios, lo que lleva al compromiso completo del servidor."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "n/a",
          "product": "n/a",
          "versions": [
            {
              "version": "n/a",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "baseScore": 8.8,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-05-13T13:04:39.213149Z",
          "id": "CVE-2026-31225",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-94"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/superduper-io/superduper",
      "source": "[email protected]"
    },
    {
      "url": "https://www.notion.so/CVE-2026-31225-35d1e1393188814f99b5eec7b6517190",
      "source": "[email protected]"
    }
  ]
}