Unsafe Deserialization in python-socketio
Summary
Vulnerability in python-socketio (CVE-2025-61765). Confidential information can be exposed externally. Exploitable via pickle. Mitigation: upgrade to 5.14.0 or later.
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2025-61765 has been found in python-socketio.
Attackers can target a specific entry point like pickle over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.4/10.
What to do: upgrade python-socketio to 5.14.0 or later.
If unsure, ask your IT team or search "python-socketio CVE-2025-61765" on the vendor's site.
CVE-2025-61765 (python-socketio) — CWE-502 / CVSS v3 6.4
Attack vector: adjacent-network / no user interaction
Attack surface: pickle / __reduce__
Patched: 5.14.0 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Unsafe deserialization (CWE-502) exists in python-socketio. Attackers reach the vulnerable code path via pickle.
Check the vendor advisory for the affected versions of python-socketio. Attack surface: pickle / __reduce__.
Severity: Medium (CVSS 6.4/10). Confidential information can be exposed externally.
Update to 5.14.0.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'python-socketio' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'python-socketio' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
python-socketioを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade python-socketio to 5.14.0ステージング環境で 5.14.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PyPIpython-socketio |
≥ 0.8.0, < 5.14.0→ 5.14.0 |
5.14.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2025-61765 python-socketio Fix available
- Ubuntu UBUNTU-CVE-2025-61765 python-socketio No fixed version in this record
Original description The description as published by the source.
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…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- advisory github.com
- package github.com
- package pypi.org
- patch github.com
- web bluerock.io