Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-61765

MEDIUM 6.4EPSS 69%

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

Also known as GHSA-g8c6-8fjj-2r4m, PYSEC-2026-1854

Mitigation

  • Upgrade python-socketio to 5.14.0 or later.

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

Vulnerability facts

Affected
python-socketio >= 0.8.0, < 5.14.0
Fixed in
5.14.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.4 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 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
EPSS
1.22% chance of exploitation in 30 days (percentile 69, 2026-11-26)
CWE
CWE-502
Published
Modified

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

Package / productAffectedFixedSource
PyPI python-socketio>= 0.8.0, < 5.14.05.14.0osv
miguelgrinberg python-socketio>= 0.8.0, < 5.14.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors