PYSEC-2026-546
Vulnerability from pysec - Published: 2026-06-29 11:50 - Updated: 2026-07-01 20:23
VLAI?
Details
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.
Severity ?
9.8 (Critical)
Impacted products
| Name | purl | syft | pkg:pypi/syft |
|---|
Aliases
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "syft",
"purl": "pkg:pypi/syft"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.9.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.1.0a1",
"0.1.10a1",
"0.1.10a2",
"0.1.10a4",
"0.1.11a1",
"0.1.12a1",
"0.1.13a1",
"0.1.14a1",
"0.1.15a1",
"0.1.16a1",
"0.1.19a1",
"0.1.1a2",
"0.1.20a1",
"0.1.21a1",
"0.1.22a1",
"0.1.23a1",
"0.1.24a1",
"0.1.25a1",
"0.1.26a1",
"0.1.27a1",
"0.1.28a1",
"0.1.29a1",
"0.1.2a1",
"0.1.3a1",
"0.1.4a1",
"0.1.4a2",
"0.1.5a1",
"0.1.6a1",
"0.1.7a1",
"0.1.8a1",
"0.1.9a1",
"0.2.0a1",
"0.2.0a2",
"0.2.1a1",
"0.2.2a1",
"0.2.3",
"0.2.3a1",
"0.2.3a2",
"0.2.3a3",
"0.2.4",
"0.2.5",
"0.2.6",
"0.2.7",
"0.2.8",
"0.2.9",
"0.3.0",
"0.5.0",
"0.5.0rc1",
"0.5.0rc2",
"0.5.0rc3",
"0.5.1",
"0.6.0",
"0.6.0a0",
"0.6.0a1",
"0.6.0a2",
"0.6.0a3",
"0.6.0a4",
"0.6.0a5",
"0.7.0",
"0.7.0b1",
"0.7.0b10",
"0.7.0b11",
"0.7.0b12",
"0.7.0b13",
"0.7.0b14",
"0.7.0b15",
"0.7.0b16",
"0.7.0b17",
"0.7.0b18",
"0.7.0b19",
"0.7.0b2",
"0.7.0b20",
"0.7.0b21",
"0.7.0b22",
"0.7.0b23",
"0.7.0b24",
"0.7.0b25",
"0.7.0b26",
"0.7.0b27",
"0.7.0b28",
"0.7.0b29",
"0.7.0b3",
"0.7.0b30",
"0.7.0b31",
"0.7.0b32",
"0.7.0b33",
"0.7.0b34",
"0.7.0b35",
"0.7.0b36",
"0.7.0b37",
"0.7.0b38",
"0.7.0b39",
"0.7.0b4",
"0.7.0b40",
"0.7.0b41",
"0.7.0b42",
"0.7.0b44",
"0.7.0b45",
"0.7.0b46",
"0.7.0b47",
"0.7.0b48",
"0.7.0b49",
"0.7.0b5",
"0.7.0b50",
"0.7.0b51",
"0.7.0b52",
"0.7.0b53",
"0.7.0b54",
"0.7.0b55",
"0.7.0b56",
"0.7.0b57",
"0.7.0b58",
"0.7.0b59",
"0.7.0b6",
"0.7.0b60",
"0.7.0b61",
"0.7.0b62",
"0.7.0b7",
"0.7.0b8",
"0.7.0b9",
"0.8.0.post2",
"0.8.0b1",
"0.8.0b10",
"0.8.0b2",
"0.8.0b3",
"0.8.0b4",
"0.8.0b5",
"0.8.0b6",
"0.8.0b7",
"0.8.0b8",
"0.8.0b9",
"0.8.1",
"0.8.1b1",
"0.8.1b10",
"0.8.1b11",
"0.8.1b12",
"0.8.1b13",
"0.8.1b14",
"0.8.1b15",
"0.8.1b16",
"0.8.1b17",
"0.8.1b18",
"0.8.1b19",
"0.8.1b2",
"0.8.1b20",
"0.8.1b21",
"0.8.1b3",
"0.8.1b4",
"0.8.1b5",
"0.8.1b6",
"0.8.1b7",
"0.8.1b8",
"0.8.1b9",
"0.8.2",
"0.8.2b1",
"0.8.2b10",
"0.8.2b11",
"0.8.2b12",
"0.8.2b13",
"0.8.2b14",
"0.8.2b15",
"0.8.2b16",
"0.8.2b17",
"0.8.2b18",
"0.8.2b19",
"0.8.2b2",
"0.8.2b20",
"0.8.2b21",
"0.8.2b22",
"0.8.2b23",
"0.8.2b24",
"0.8.2b25",
"0.8.2b26",
"0.8.2b27",
"0.8.2b28",
"0.8.2b29",
"0.8.2b3",
"0.8.2b30",
"0.8.2b31",
"0.8.2b32",
"0.8.2b33",
"0.8.2b34",
"0.8.2b35",
"0.8.2b36",
"0.8.2b37",
"0.8.2b38",
"0.8.2b39",
"0.8.2b4",
"0.8.2b40",
"0.8.2b41",
"0.8.2b42",
"0.8.2b43",
"0.8.2b44",
"0.8.2b45",
"0.8.2b46",
"0.8.2b47",
"0.8.2b48",
"0.8.2b49",
"0.8.2b5",
"0.8.2b50",
"0.8.2b51",
"0.8.2b52",
"0.8.2b53",
"0.8.2b54",
"0.8.2b55",
"0.8.2b56",
"0.8.2b57",
"0.8.2b58",
"0.8.2b59",
"0.8.2b6",
"0.8.2b60",
"0.8.2b7",
"0.8.2b8",
"0.8.2b9",
"0.8.3",
"0.8.3b1",
"0.8.3b2",
"0.8.3b3",
"0.8.3b4",
"0.8.3b5",
"0.8.3b6",
"0.8.4",
"0.8.4b1",
"0.8.4b10",
"0.8.4b11",
"0.8.4b12",
"0.8.4b13",
"0.8.4b14",
"0.8.4b15",
"0.8.4b16",
"0.8.4b17",
"0.8.4b18",
"0.8.4b19",
"0.8.4b2",
"0.8.4b20",
"0.8.4b21",
"0.8.4b22",
"0.8.4b23",
"0.8.4b24",
"0.8.4b25",
"0.8.4b26",
"0.8.4b27",
"0.8.4b28",
"0.8.4b29",
"0.8.4b3",
"0.8.4b30",
"0.8.4b31",
"0.8.4b4",
"0.8.4b5",
"0.8.4b6",
"0.8.4b7",
"0.8.4b8",
"0.8.4b9",
"0.8.5",
"0.8.5.post1",
"0.8.5.post2",
"0.8.5b1",
"0.8.5b10",
"0.8.5b2",
"0.8.5b3",
"0.8.5b4",
"0.8.5b5",
"0.8.5b6",
"0.8.5b8",
"0.8.5b9",
"0.8.6",
"0.8.6b1",
"0.8.7",
"0.8.7b1",
"0.8.7b10",
"0.8.7b12",
"0.8.7b13",
"0.8.7b14",
"0.8.7b15",
"0.8.7b16",
"0.8.7b2",
"0.8.7b3",
"0.8.7b4",
"0.8.7b5",
"0.8.7b6",
"0.8.7b7",
"0.8.7b8",
"0.8.7b9",
"0.8.8",
"0.8.8b1",
"0.8.8b2",
"0.8.8b3",
"0.8.8b4",
"0.9.0",
"0.9.0b1",
"0.9.0b2",
"0.9.0b3",
"0.9.0b4",
"0.9.0b5",
"0.9.1",
"0.9.1b1",
"0.9.1b10",
"0.9.1b11",
"0.9.1b2",
"0.9.1b3",
"0.9.1b4",
"0.9.1b5",
"0.9.1b6",
"0.9.1b7",
"0.9.1b8",
"0.9.1b9",
"0.9.2",
"0.9.2b1",
"0.9.2b2",
"0.9.2b3",
"0.9.2b4",
"0.9.2b5",
"0.9.2b6",
"0.9.2b7",
"0.9.2b8",
"0.9.3",
"0.9.3b1",
"0.9.3b2",
"0.9.3b4",
"0.9.5"
]
}
],
"aliases": [
"CVE-2026-31220",
"GHSA-cfpg-c974-jfhq"
],
"details": "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.",
"id": "PYSEC-2026-546",
"modified": "2026-07-01T20:23:05.610433Z",
"published": "2026-06-29T11:50:49.505067Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31220"
},
{
"type": "PACKAGE",
"url": "https://github.com/OpenMined/PySyft"
},
{
"type": "WEB",
"url": "https://www.notion.so/CVE-2026-31220-35d1e1393188814186b9e00114a8aba7"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/syft"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-cfpg-c974-jfhq"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "PySyft server-side arbitrary Python execution after code approval"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…