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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-05-12T00:00:00.000Z
- Modified: 2026-07-01T20:23:05.610Z
- Also known as: GHSA-cfpg-c974-jfhq, PYSEC-2026-546
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- syft (PyPI): up to 0.9.5

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/OpenMined/PySyft> (package)
- <https://www.notion.so/CVE-2026-31220-35d1e1393188814186b9e00114a8aba7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31220> (advisory)
- <https://pypi.org/project/syft> (package)
- <https://github.com/advisories/GHSA-cfpg-c974-jfhq> (advisory)

## Sources

- CVE List: [CVE-2026-31220](https://www.cve.org/CVERecord?id=CVE-2026-31220), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-cfpg-c974-jfhq](https://github.com/advisories/GHSA-cfpg-c974-jfhq), CC-BY-4.0, modified 2026-06-29
- NVD: [CVE-2026-31220](https://nvd.nist.gov/vuln/detail/CVE-2026-31220), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-546](https://osv.dev/vulnerability/PYSEC-2026-546), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-31220 · Whole record: https://cve.day/CVE-2026-31220.json · Rebuilt by cve.day 2026-11-25T22:59:21.366Z
