CVE-2026-31220: PySyft - Remote Code Execution
- Cve: CVE-2026-31220
- Name: PySyft - Remote Code Execution
- 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.
- Impact: Remote attackers can execute arbitrary Python code on the server, leading to full server compromise.
- Remediation: Update to the latest version of PySyft.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs code approval to execute submitted functions.
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00631
- Epss percentile: 0.50997
- Assignee: [email protected]
- Published at: 2026-05-12T16:16:13Z
- Age in days: 196
- Modified at: 2026-06-17T10:33:27Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31220
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/OpenMined/PySyft | nvd | |
| https://www.notion.so/CVE-2026-31220-35d1e1393188814186b9e00114a8aba7 | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| openmined/pysyft | package | yes | /v1/repositories/openmined/pysyft |
Index
- Repositories: 4
- Repositories high signal: 1
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts