CVE-2026-31225: Superduper Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-2799-6g5r-mmc7
CVSS 8.8
CWE-94
Published
Advisory Summary

CVE-2026-31225 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Superduper libraries in the PyPI ecosystem. The issue involves remote code execution via unsafe eval in superduper query parsing. Remediation is available in the latest vendor maintenance releases.

CVE-2026-31225 at a Glance

CVE Identifier CVE-2026-31225
GHSA Identifier GHSA-2799-6g5r-mmc7
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Superduper
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-31225

To remediate this vulnerability, upgrade all affected Superduper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

superduper-framework fixed: Latest secure release
pip install superduper-framework>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show superduper-framework

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-31225, inspect your installed packages using pip:

pip show superduper-framework

Analyze the terminal output to locate any version of Superduper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show superduper-framework command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Superduper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-31225 Affected Superduper Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
superduper-framework
PyPI
≤ 0.10.0

References

Frequently Asked Questions

What is CVE-2026-31225?
CVE-2026-31225 is a security vulnerability in Superduper involving Remote code execution via unsafe eval in superduper query parsing under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Superduper versions are affected?
Affected versions include releases prior to current release patches across affected packages: superduper-framework.
What version fixes CVE-2026-31225?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is superduper-framework affected?
Yes, superduper-framework is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-31225?
CVE-2026-31225 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-31225?
CVE-2026-31225 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check PyPI dependencies for CVE-2026-31225?
Run the dependency tree command: 'pip show superduper-framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2799-6g5r-mmc7",
  "modified" : "2026-05-18T20:26:43Z",
  "published" : "2026-05-12T18:30:38Z",
  "aliases" : [ "CVE-2026-31225" ],
  "summary" : "Superduper: Remote code execution via unsafe eval in superduper query parsing",
  "details" : "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" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "superduper-framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-31225"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/superduper-io/superduper"
  }, {
    "type" : "WEB",
    "url" : "https://www.notion.so/CVE-2026-31225-35d1e1393188814f99b5eec7b6517190"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T20:26:43Z",
    "nvd_published_at" : "2026-05-12T16:16:14Z"
  }
}