5.3medium
Improper Handling of Highly Compressed Data (Data Amplification) and Memory Allocation with Excessive Size Value in eventlet
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.79% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9p9m-jm8w-94p2PYSEC-2021-12
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
| Product or package | Versions | Reported by |
|---|---|---|
| eventlet eventlet | >= 0.10, < 0.31.0, from 0.10 before 0.31.0 | CVE List, NVD |
| eventlet (PyPI) | from 0.10 before 0.31.0, from 0.10.0 before 0.31.0 | GitHub Advisory Database, PyPA Advisory Database |
| fedoraproject fedora | 33, 34 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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:
- Open an issue in eventlet
- Contact current maintainers. At 2021-03: temotor@gmail.com or https://t.me/temotor
NVD (es)
Eventlet es una biblioteca de redes concurrentes para Python. Un peer de websocket puede agotar la memoria en el lado de Eventlet mediante el envío de tramas de websocket muy grandes. Los peers maliciosos pueden agotar la memoria en el lado de Eventlet mediante el envío de tramas de datos altamente comprimido. Un parche en la versión 0.31.0 restringe la trama de websocket a límites razonables. Como solución alternativa, restringir el uso de la memoria por medio de los límites del sistema operativo ayudaría contra el agotamiento general de la máquina, pero no hay una solución para proteger el proceso de Eventlet
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21419 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9p9m-jm8w-94p2 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21419 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-12 changed 2023-11-08 | CC-BY-4.0 |