Skip to main content

python-socketio CVE-2025-61765

MEDIUM
Deserialization of Untrusted Data (CWE-502)
2025-10-06 security-advisories@github.com
6.4
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain access to internal message queue
  2. Delivery
    Craft malicious pickle payload (__reduce__)
  3. Exploit
    Publish to inter-server channel
  4. Execution
    Server auto-deserializes via pickle.loads()
  5. Impact
    Execute arbitrary code as Socket.IO server process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of the following: (1) a multi-server python-socketio deployment version >=0.8.0 and <5.14.0; (2) use of a pickle-based message-queue backend for inter-server communication (Redis via redis_manager/async_redis_manager, Kafka, RabbitMQ via aiopika, or Kombu - the affected managers in the diff); and (3) the attacker must have ALREADY obtained write/publish access to that message queue, because servers implicitly trust queue messages and call pickle.loads() on them. Limiting factors that sharply reduce real-world risk: single-server deployments that use no message queue are NOT vulnerable; multi-server deployments with an authenticated, encrypted, network-isolated (localhost/VPC) queue are NOT exploitable since the attacker cannot reach the queue; no end-user interaction exists as an attack surface, but the required prior queue compromise (PR:H) and internal/adjacent network position (AV:A) are the dominant gating conditions.

Impact

This is a genuine RCE (CWE-502 unsafe pickle deserialization) but a conditional one, and the signals are internally consistent rather than conflicting. The CVSS 3.1 vector (AV:A/AC:L/PR:H/UI:N, 6.4 MEDIUM) correctly encodes the central precondition: the attacker must already have gained access to the internal message queue (Redis/Kafka/RabbitMQ/Kombu) that Socket.IO servers use for inter-server communication - reflected as PR:H (control of the trusted queue) and AV:A (queue lives on a private/internal network or VPC). EPSS is low at 0.48% (40th percentile), which aligns with the high bar for exploitation - this is not mass-exploitable Internet-facing code. The CVE is NOT in CISA KEV, and there is no public exploit identified at time of analysis; a vendor-style technical write-up exists (BlueRock, who discovered it) but that is disclosure research, not a confirmed public weaponized PoC. Net: this is a real priority ONLY for organizations running multi-server python-socketio (<5.14.0) with a message-queue backend, treated as a defense-in-depth / post-compromise escalation issue rather than a perimeter emergency. For single-server deployments or those with a properly secured, authenticated, network-isolated queue, real-world risk is low. The MEDIUM rating is appropriate and not an inflated high-CVSS-low-risk case; conversely it should not be dismissed, because a compromised queue turns into full code execution on every connected server.

Exploit ScenarioDerived

An attacker who has already compromised the Redis (or other) message queue in a multi-server Socket.IO deployment publishes a crafted pickle payload onto the inter-server channel. A receiving python-socketio server (<5.14.0) trusts the message and calls pickle.loads() on it, triggering the payload's __reduce__ method and executing arbitrary Python code with the privileges of the server process. No public exploit code is identified at time of analysis, though the attack technique and vulnerable code path are documented by the discovering researchers.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 09, 2026

Arbitrary Python code execution in python-socketio versions 0.8.0 through 5.13.x is achievable when a multi-server deployment uses a pickle-based message-queue backend (Redis via the redis_manager/async_redis_manager, Kafka, RabbitMQ via aiopika, or Kombu) because each node deserializes inter-server messages with pickle.loads() without validating their origin. The attack is conditional rather than opportunistic: the adversary must have already obtained write/publish access to the internal message queue, from which they can drop a crafted payload that executes with the full privileges of the Socket.IO server process. No public exploit identified at time of analysis, EPSS is low at 0.48% (40th percentile), and CISA KEV does not list this issue; the vendor fix is version 5.14.0, which removes pickle entirely in favor of JSON encoding.

RemediationAI

Vendor-released patch: upgrade python-socketio to 5.14.0 or newer, which eliminates pickle from inter-server messaging and replaces it with engineio's JSON codec, so a hostile queue message can no longer trigger code execution during deserialization (see https://github.com/miguelgrinberg/python-socketio/security/advisories/GHSA-g8c6-8fjj-2r4m and the fix commit https://github.com/miguelgrinberg/python-socketio/commit/53f6be094257ed81476b0e212c8cddd6d06ca39a). Where upgrading must be deferred, the practical compensating controls are those that deny the attacker the queue access the exploit depends on: bind a single-node queue to localhost only, and for multi-node deployments place the message queue on a private network/VPC with no route from untrusted segments; enable and enforce queue authentication and TLS encryption so credentials are required and traffic cannot be sniffed or spoofed; and restrict firewall/security-group rules so only the Socket.IO server hosts can reach the queue port (Redis 6379, Kafka 9092, RabbitMQ 5672/amqps), accepting that this reduces but does not remove risk if any server host is itself compromised, since an attacker who already holds queue write access can still publish a malicious pickle to a patched-but-unupgraded peer. Note that these are perimeter controls with a shared trust boundary trade-off: they do not change the fact that pre-5.14.0 peers will blindly unpickle whatever reaches them, so upgrading remains the only complete fix. Also rotate any credentials for the message queue, since the exploit prerequisite implies those credentials or the queue itself were already compromised.

Affected Packages

pypi python-socketio fix: 5.14.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-502, deserialization of untrusted data, occurring in python-socketio's pub/sub manager layer that coordinates state across horizontally scaled Socket.IO servers. In affected releases, the managers (redis_manager.py, async_redis_manager.py, kafka_manager.py, kombu_manager.py, async_aiopika_manager.py, and the shared pubsub_manager.py/async_pubsub_manager.py threads) serialize inter-node messages with pickle.dumps() on publish and call pickle.loads() on receive, treating anything arriving on the internal channel as implicitly trusted. Python's pickle format is not a data-only format: it can carry callable reconstruction instructions, and an attacker-supplied payload using __reduce__ causes arbitrary code to run at load time, before any application-level validation can inspect the message. The commit at 53f6be094257ed81476b0e212c8cddd6d06ca39a removes the pickle import from each manager and switches both the publish and listen paths to engineio's JSON codec, which cannot express executable constructs; the same commit tightens the deployment documentation to state that a single-node queue should bind only to localhost and that multi-node queues should be placed on a private network/VPC with authentication and encryption. Affected CPE/package coordinates are pip/python-socketio from 0.8.0 up to but excluding 5.14.0. The supplied CVSS vector (AV:A/PR:H) correctly reflects that the attacker must already be positioned on the internal network segment hosting the queue and must already possess queue credentials - this is a post-compromise escalation primitive, not a remotely reachable pre-auth flaw.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.4 MEDIUM
AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L
vuln.today AI 6.8 MEDIUM

Attacker needs prior access to the internal/private message queue, so AV:A and PR:H; successful pickle RCE yields full process compromise, hence C:H/I:H/A:H.

3.1 AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:A/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Medium
popular Python realtime library, but vulnerable multi-server queue config is a subset
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy