Skip to main content

PySyft EUVDEUVD-2026-29504

| CVE-2026-31220 CRITICAL
Code Injection (CWE-94)
2026-05-12 mitre GHSA-cfpg-c974-jfhq
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious Python function
  2. Delivery
    Social engineer approval
  3. Exploit
    Code executes via exec()
  4. Execution
    Arbitrary command execution
  5. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

Affected Packages

pypi syft no fix

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

NVD PRIMARY 9.8 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
May 15, 2026 - 19:22 NVD
9.8 (CRITICAL)
CVE Published
May 12, 2026 - 00:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on syft (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.9.5.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy