Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. syft
  4. ›
  5. CVE-2026-31220

CVE-2026-31220: PySyft server-side arbitrary Python execution after code approval

May 12, 2026 (updated May 18, 2026)

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.

References

  • github.com/advisories/GHSA-cfpg-c974-jfhq
  • nvd.nist.gov/vuln/detail/CVE-2026-31220
  • www.notion.so/CVE-2026-31220-35d1e1393188814186b9e00114a8aba7

Code Behaviors & Features

Detect and mitigate CVE-2026-31220 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.9.5

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/syft/CVE-2026-31220.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:20 +0000.