Advisory

GHSA-9p9m-jm8w-94p2

Also known as: CVE-2021-21419, PYSEC-2021-12

Summary

Improper Handling of Highly Compressed Data (Data Amplification) and Memory Allocation with Excessive Size Value in eventlet

Details

Impact
A websocket peer may exhaust memory on Eventlet side by sending very large websocket frames. Malicious peer may exhaust memory on Eventlet side by sending highly compressed data frame.

Patches
Version 0.31.0 restricts websocket frame to reasonable limits.

Workarounds
Restricting memory usage via OS limits would help against overall machine exhaustion. No workaround to protect Eventlet process.

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-07 15:50 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

eventlet

PyPI · All systems

Affected

  • introduced 0.10, fixed 0.31.0 (ecosystem)

Fixed versions

0.31.0

Fix

  • Fixed version 0.31.0
    pip install --upgrade eventlet==0.31.0

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences