CVE-2026-116579
Unbounded Brotli decompression leads to memory‑exhaustion DoS in Autobahn Python.
- CVSS 5.9
- CWE-409
- Resource Management
- Remote
Autobahn Python is a WebSocket and WAMP implementation for Python that supports Twisted and asyncio. From 26.7.1 until 26.10.1, PerMessageBrotli.decompress_message_data in compress_brotli.py calls the Brotli decompressor without an output limit and checks maxMessagePayloadSize only after a complete frame has been inflated. An unauthenticated WebSocket client can send a small, highly compressed frame that allocates hundreds of MiB before rejection, causing memory-exhaustion denial of service on servers that enable the opt-in permessage-brotli feature through the compress extra. Deflate and bzip2 already enforce the remaining output budget and are outside this residual vulnerability. This issue is fixed in version 26.10.1.
- CWE
- CWE-409
- CVSS base score
- 5.9
- Published
- 2026-10-26
- OWASP
- A04 Insecure Design
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Resource Management
- Subcategory
- Resource Exhaustion
- Accessibility scope
- Remote
- Impact
- Denial of Service (DoS)
- Affected component
- Autobahn Python
- Fixed by upgrading
- Yes
Solution
Upgrade AutobahnPython to version 26.10.1 (or later).
Vulnerable code sample
import brotli
def decompress_message_data(frame_data: bytes, max_message_payload_size: int) -> bytes:
# VULNERABLE: decompresses without output limit, checks size only after full inflate
decompressor = brotli.Decompressor()
inflated = decompressor.decompress(frame_data)
if len(inflated) > max_message_payload_size:
raise ValueError("payload exceeds allowed size")
return inflatedPatched code sample
import brotli
def decompress_message_data(frame_data: bytes, max_message_payload_size: int) -> bytes:
# FIX: enforce output limit during decompression
decompressor = brotli.Decompressor(max_output_size=max_message_payload_size)
inflated = decompressor.decompress(frame_data)
return inflatedPublished fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- #1986: green – uniform decompression budget and corrupt-input handling (crossbario/autobahn-python)
src/autobahn/asyncio/websocket.py · WebSocketAdapterProtocol._consume,src/autobahn/exception.py,src/autobahn/websocket/compress_base.py,src/autobahn/websocket/compress_brotli.py,src/autobahn/websocket/compress_brotli.py · PerMessageBrotli.decompress_message_data,src/autobahn/websocket/compress_brotli.py · PerMessageBrotli.end_decompress_message,src/autobahn/websocket/compress_bzip2.py,src/autobahn/websocket/compress_bzip2.py · PerMessageBzip2.decompress_message_data,src/autobahn/websocket/compress_bzip2.py · PerMessageBzip2.end_decompress_message,src/autobahn/websocket/compress_deflate.py,src/autobahn/websocket/compress_deflate.py · PerMessageDeflate.decompress_message_data,src/autobahn/websocket/compress_deflate.py · PerMessageDeflate.end_decompress_messageand 8 more
Cite this entry
@misc{vaitp:cve2026116579,
title = {{Unbounded Brotli decompression leads to memory‑exhaustion DoS in Autobahn Python.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-116579},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116579/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
