Advisory

PYSEC-2026-3042

Also known as: CVE-2026-48804, GHSA-5w7q-77mv-v69f

Summary

python-socketio: Binary attachment accumulation can cause denial of service

Details

Impact
The python-socketio server stores binary EVENT and ACK messages in memory while it waits to receive their binary attachments. Once all the attachments are received, these messages are then processed. An attacker can submit a binary message and intentionally omit sending one or more of its attachments to cause the message along with the partial list of received attachments to stay in memory for a long time.

Patches
Version 5.16.2 takes the following measures to address this issue:

  • Binary packets are only accepted from authenticated clients.
  • When a client disconnects, the server checks if there is a partial binary message being held for the client and deletes it.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-13 15:46 UTC
Modified
2026-07-13 16:33 UTC

Affected packages and fixes

python-socketio

PyPI · All systems

Affected

  • introduced 0, fixed 5.16.2 (ecosystem)

Fixed versions

5.16.2

Fix

  • Fixed version 5.16.2
    pip install --upgrade python-socketio==5.16.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences