CVE-2026-31220
JSON

9.8critical

PySyft server-side arbitrary Python execution after code approval

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-cfpg-c974-jfhqPYSEC-2026-546

Description

PySyft (Syft Datasite/Server) versions 0.9.5 and earlier are vulnerable to remote code execution due to insufficient validation and sandboxing of user-submitted code. The system allows low-privileged users to submit Python functions (via @sy.syft_function()) for remote execution on the server. While a code approval mechanism exists, the submitted code undergoes no security checks for dangerous operations (e.g., file access, command execution). Once approved, the code is executed within the server process using exec() and eval() functions without proper isolation. A remote attacker can leverage this to execute arbitrary Python code on the server, leading to complete compromise of the server environment.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
syft (PyPI)up to 0.9.5GitHub Advisory Database, PyPA Advisory Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31220 changed 2026-05-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-cfpg-c974-jfhq changed 2026-06-29CC-BY-4.0
NVDCVE-2026-31220 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-546 changed 2026-07-01CC-BY-4.0