Vulnerability · Published May 7, 2021 · Assigned by GitHub_M

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

Medium 5.3

In plain English

A medium-severity uncontrolled resource consumption in eventlet from eventlet. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.8%top 21.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Eventlet is a concurrent networking library for Python. 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. A patch in version 0.31.0 restricts websocket frame to reasonable limits. As a workaround, restricting memory usage via OS limits would help against overall machine exhaustion, but there is no workaround to protect Eventlet process.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-eventlet0.26.1-7DEBIAN-CVE-2021-21419
Debian:13python-eventlet0.26.1-7DEBIAN-CVE-2021-21419
Debian:14python-eventlet0.26.1-7DEBIAN-CVE-2021-21419
PyPIeventlet0.31.0GHSA-9p9m-jm8w-94p2
PyPIeventlet0.31.0PYSEC-2021-12

Affected products (as reported)

VendorProductVersions
eventlet eventlet >= 0.10, < 0.31.0

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References