GitHub Advisoryadvisory · PyPI

GHSA-cfpg-c974-jfhq PySyft server-side arbitrary Python execution after code approval

CRITICAL Published 2026-05-12 Modified 2026-05-18 Official page ↗
Aliases
CVE-2026-31220
Ecosystem
PyPI
Packages
syft
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2026-05-18

Affected packages

• PyPI syft: <= 0.9.5 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2026-31220 PySyft (Syft Datasite/Server) versions 0.9.5 and earlier are vulnerable to remote code execution due to insufficient validation and… vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References