Intel

AIKIDO-2026-512602

aiosonic is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-5x59-6wvc-88hg Published Jul 27, 2026

59

Medium Risk

This Affects:

PYTHONaiosonic
0.1.0 - 1.0.2
Fixed in 1.0.3
Are you affected? Scan for Free

TL;DR

aiosonic transparently decompresses Content-Encoding: gzip and deflate response bodies with one-shot gzip.decompress()/zlib.decompress() calls over the entire buffer and no output-size limit. A malicious or compromised server can return a small compressed payload that inflates to hundreds of megabytes or gigabytes, exhausting memory in the client process and crashing it. Decompression happens in the request path before the response object is returned, so callers cannot inspect headers and opt out, and no special option is required. The fix switches to bounded streaming decompression with a configurable maximum size and raises a new DecompressionError on overflow.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application fetches responses from untrusted or attacker-influenced servers.

Background info

aiosonic is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.0.2.

How to fix this

Upgrade the aiosonic library to the patch version.