CVE-2025-61765 json
python-socketio vulnerable to arbitrary Python code execution (RCE) through malicious pickle deserialization in certain multi-server deployments
published 2025-10-06 13 mo ago modified 2026-10-09 31 d ago also GHSA-g8c6-8fjj-2r4m , PYSEC-2026-1854 , EUVD-2025-32096
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi python-socketio 5.14.0
- python-socketio Debian 14 5.16.0-1
debian advisories DEBIAN-CVE-2025-61765
- python-python-socketio SLE Module for Python 3 15 SP7, SLE Module for Python 3 15 SP6, openSUSE Leap 15.6 5.7.2-150600.3.3.1
suse advisories SUSE-SU-2025:3780-1
- python-python-socketio openSUSE Tumbleweed 5.14.1-1.1
opensuse advisories openSUSE-SU-2025:15613-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-61765 updated cvss 6.4
python-socketio: python-socketio code execution (RCE) via pickle deserialization
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 13 mo ago
Exploit prediction
0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L |
| GitHub | 3.1 | 6.4 | CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L |
| OSV | 3.1 | 6.4 | CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | python-socketio | >=0.8.0, <5.14.0 |
5.14.0 |
Affected products
- miguelgrinberg python-socketio
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/miguelgrinberg/python-socketio/commit/53f6be094257ed81476b0e212c8cddd6d06ca39a
web
-
github.com
/miguelgrinberg/python-socketio/security/advisories/GHSA-g8c6-8fjj-2r4m
web
-
bluerock.io
/post/cve-2025-61765-bluerock-discovers-critical-rce-in-socket-io-ecosystem
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-61765
advisory
-
github.com
/miguelgrinberg/python-socketio
package
-
pypi.org
/project/python-socketio
package
-
github.com
/advisories/GHSA-g8c6-8fjj-2r4m
advisory
Sources
- CVE List CVE-2025-61765
- GitHub Advisory GHSA-g8c6-8fjj-2r4m
- NVD CVE-2025-61765
- OSV PYSEC-2026-1854
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.