# CVE-2025-61765: python-socketio vulnerable to arbitrary Python code execution (RCE) through malicious pickle deserialization in certain multi-server deployments

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.22% (percentile 69, 2026-11-26)
- **CWE:** CWE-502
- **Aliases:** GHSA-g8c6-8fjj-2r4m, PYSEC-2026-1854
- **Published:** 2025-10-06T16:04:22.559Z
- **Modified:** 2026-10-09T10:10:00.193Z

## Who should check

- Projects that depend on PyPI package python-socketio (\>= 0.8.0, \< 5.14.0)
- Anyone running miguelgrinberg python-socketio \>= 0.8.0, \< 5.14.0

## Description

python-socketio is a Python implementation of the Socket.IO realtime client and server. A remote code execution vulnerability in python-socketio versions prior to 5.14.0 allows attackers to execute arbitrary Python code through malicious pickle deserialization in multi-server deployments on which the attacker previously gained access to the message queue that the servers use for internal communications. When Socket.IO servers are configured to use a message queue backend such as Redis for inter-server communication, messages sent between the servers are encoded using the \`pickle\` Python module. When a server receives one of these messages through the message queue, it assumes it is trusted and immediately deserializes it. The vulnerability stems from deserialization of messages using Python's \`pickle.loads()\` function. Having previously obtained access to the message queue, the attacker can send a python-socketio server a crafted pickle payload that executes arbitrary code during deserialization via Python's \`\_\_reduce\_\_\` method. This vulnerability only affects deployments with a compromised message queue. The attack can lead to the attacker executing random code in the context of, and with the privileges of a Socket.IO server process. Single-server systems that do not use a message queue, and multi-server systems with a secure message queue are not vulnerable. In addition to making sure standard security practices are followed in the deployment of the message queue, users of the python-socketio package can upgrade to version 5.14.0 or newer, which remove the \`pickle\` module and use the much safer JSON encoding for inter-server messaging.

## Affected and fixed versions

- PyPI `python-socketio`: affected \>= 0.8.0, \< 5.14.0; fixed 5.14.0 (osv)
- miguelgrinberg python-socketio: \>= 0.8.0, \< 5.14.0 (cvelist)

## Mitigation

- Upgrade python-socketio to 5.14.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-61765. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-61765.md
Affected: python-socketio >= 0.8.0, < 5.14.0
Fixed in: 5.14.0

Steps:
1. Search this machine and project for python-socketio (PyPI), miguelgrinberg python-socketio: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-61765 being exploited?

There is no confirmed exploitation: CVE-2025-61765 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-61765?

Medium: CVSS 6.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-61765?

python-socketio \>= 0.8.0, \< 5.14.0.

### Is there a fix for CVE-2025-61765?

Yes. Fixed in 5.14.0. Upgrade python-socketio to 5.14.0 or later.

### How do I check if I'm affected by CVE-2025-61765?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/miguelgrinberg/python-socketio/security/advisories/GHSA-g8c6-8fjj-2r4m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-61765>
- vendor: <https://github.com/advisories/GHSA-g8c6-8fjj-2r4m>
- patch: <https://github.com/miguelgrinberg/python-socketio/commit/53f6be094257ed81476b0e212c8cddd6d06ca39a>
- other: <https://www.bluerock.io/post/cve-2025-61765-bluerock-discovers-critical-rce-in-socket-io-ecosystem>
- other: <https://github.com/miguelgrinberg/python-socketio>
- other: <https://pypi.org/project/python-socketio>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-61765>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g8c6-8fjj-2r4m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1854> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-61765> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-61765>
