Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious Python function
-
DeliverySocial engineer approval
-
ExploitCode executes via exec()
-
ExecutionArbitrary command execution
-
ImpactFull server compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The code approval workflow must be enabled and an administrator or authorized user must approve the attacker's submitted function before execution. The PySyft server must be running versions 0.9.5 or earlier with the function submission feature (@sy.syft_function() decorator) enabled. No authentication is required to submit functions based on the CVSS vector, but the approval step provides a manual gate that limits automated exploitation. |
| Impact | The CVSS score of 9.8 reflects the worst-case scenario: network-accessible, no authentication required, low complexity, and complete compromise potential. However, the EPSS score of 0.04% (13th percentile) suggests very low likelihood of exploitation in practice. The SSVC framework confirms this is automatable with total technical impact, but notes no current exploitation. The discrepancy between high CVSS and low EPSS likely stems from the approval workflow requirement - while the vulnerability is severe once code is approved, an attacker must first get malicious code through the approval process. No public exploit code or CISA KEV listing exists at time of analysis. |
| Exploit ScenarioDerived | An attacker submits a seemingly benign machine learning function decorated with @sy.syft_function() that contains hidden malicious code such as os.system() calls or file operations. Once an administrator approves the function, it executes on the server with full process privileges, allowing the attacker to read sensitive files, establish persistence, or pivot to internal systems. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
Remote code execution in PySyft Datasite/Server versions 0.9.5 and earlier allows unauthenticated attackers to execute arbitrary Python code on the server through the function submission mechanism. The vulnerability stems from insufficient validation and sandboxing of user-submitted Python functions decorated with @sy.syft_function(), which are executed using unsafe exec() and eval() calls after approval. With an EPSS score of 0.04% and no current KEV listing, this appears to be a high-severity vulnerability without confirmed active exploitation.
RemediationAI
No vendor-released patch identified at time of analysis. The Notion advisory link (https://www.notion.so/CVE-2026-31220-35d1e1393188814186b9e00114a8aba7) may contain vendor guidance but requires access verification. As compensating controls: disable the @sy.syft_function() submission feature if not required, implement strict code review processes for all function approvals focusing on system calls and file operations, deploy the PySyft server in an isolated container or VM with minimal privileges, and monitor server processes for unexpected child process creation or file system modifications. Each control has trade-offs - disabling function submission breaks core functionality, manual review doesn't scale, and isolation adds operational complexity.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PySyft is a privacy-preserving machine learning framework that enables remote computation on distributed data. The vulnerability exists in the function submission mechanism where users can submit Python functions for remote execution on the Syft Datasite/Server. The root cause is CWE-94 (Code Injection), where user-supplied code is executed without proper validation or sandboxing. The system uses Python's exec() and eval() functions to run approved code directly within the server process, lacking isolation mechanisms like containerization or restricted execution environments.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 1 pypi packages depend on syft (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.9.5.
Executive ViewAI
PySyft Datasite/Server versions 0.9.5 and earlier contain a critical remote code execution vulnerability allowing unauthenticated attackers to execute arbitrary Python code on affected servers through unsafe handling of user-submitted functions. Organizations running PySyft in production face immediate risk of complete system compromise, data exfiltration, and lateral movement within their infrastructure, with no vendor patch currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict the function submission mechanism at the application level if possible; (2) Implement strict network access controls limiting PySyft server connectivity to internal, authenticated users only; (3) Deploy runtime monitoring to detect suspicious Python execution patterns; (4) Require manual code review and approval workflows with additional validation layers before function execution; (5) Isolate PySyft instances in network segments with minimal lateral movement paths.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-29504
GHSA-cfpg-c974-jfhq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB