VDB
Sign up
HIGH7.5

GHSA-h4cc-hm5h-fmm9

AIOHTTP: Concatenated compressed streams cause excessive CPU use

Quick fix

GHSA-h4cc-hm5h-fmm9 — aiohttp: upgrade to the fixed version with the command below.

pip install --upgrade 'aiohttp>=3.14.4'

Details

### Summary

When decompressing a payload made up of many concatenated compressed members (gzip, deflate or zstd), each member was decoded by passing the entire remaining input to a new decompressor, resulting in quadratic CPU time. Empty members produce no output, so `client_max_size` and output backpressure did not limit the work.

### Impact

An attacker could block the event loop of a server with a specially crafted compressed request body or WebSocket message. A malicious server could do the same to a client.

---

Patch: https://github.com/aio-libs/aiohttp/commit/d925a80539ffd227da1d93ab4a5bff123cc777db

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/aiohttp
Introduced in: 0Fixed in: 3.14.4
Fixpip install --upgrade 'aiohttp>=3.14.4'

References