{"id":"CVE-2026-31225","aliases":["CVE-2026-31225","GHSA-2799-6g5r-mmc7","PYSEC-2026-3077"],"related":[],"kind":"vulnerability","state":"published","title":"Superduper: Remote code execution via unsafe eval in superduper query parsing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-12T00:00:00.000Z","modified":"2026-10-19T22:10:00.130Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.10.0"}],"ecosystem":"PyPI","package":"superduper-framework","purl":"pkg:pypi/superduper-framework","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.10.0"}],"ecosystem":"PyPI","package":"superduper-framework","purl":"pkg:pypi/superduper-framework","source":"pysec"}],"references":[{"url":"https://github.com/superduper-io/superduper","tags":["package"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.notion.so/CVE-2026-31225-35d1e1393188814f99b5eec7b6517190","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31225","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/superduper-framework","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-2799-6g5r-mmc7","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-13T13:04:39.213Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31225","url":"https://www.cve.org/CVERecord?id=CVE-2026-31225","licence":"CVE Terms of Use","modified":"2026-05-13T13:04:44.955Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2799-6g5r-mmc7","url":"https://github.com/advisories/GHSA-2799-6g5r-mmc7","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:51.879Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31225","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31225","licence":"Public domain","modified":"2026-10-19T22:10:00.130Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3077","url":"https://osv.dev/vulnerability/PYSEC-2026-3077","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:12.958Z"}],"updatedAt":"2026-11-25T22:59:21.368Z","epss":{"score":0.00405,"percentile":0.36827,"date":"2026-12-01T12:00:22.000Z"}}