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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.79%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-05-07T14:30:12.000Z
- Modified: 2026-07-08T06:27:42.178Z
- Also known as: GHSA-9p9m-jm8w-94p2, PYSEC-2021-12
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- eventlet eventlet: >= 0.10, < 0.31.0; from 0.10 before 0.31.0
- eventlet (PyPI): from 0.10 before 0.31.0; from 0.10.0 before 0.31.0
- fedoraproject fedora: 33; 34

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/eventlet/eventlet/security/advisories/GHSA-9p9m-jm8w-94p2> (advisory, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5JZP4LZOSP7CUAM3GIRW6PIAWKH5VGB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2WJFSBPLCNSZNHYQC4QDRDFRTEZRMD2L/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21419> (advisory)
- <https://github.com/eventlet/eventlet/commit/1412f5e4125b4313f815778a1acb4d3336efcd07> (web)
- <https://github.com/eventlet/eventlet> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/eventlet/PYSEC-2021-12.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2WJFSBPLCNSZNHYQC4QDRDFRTEZRMD2L> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R5JZP4LZOSP7CUAM3GIRW6PIAWKH5VGB> (web)

## Sources

- CVE List: [CVE-2021-21419](https://www.cve.org/CVERecord?id=CVE-2021-21419), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9p9m-jm8w-94p2](https://github.com/advisories/GHSA-9p9m-jm8w-94p2), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21419](https://nvd.nist.gov/vuln/detail/CVE-2021-21419), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-12](https://osv.dev/vulnerability/PYSEC-2021-12), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-21419 · Whole record: https://cve.day/CVE-2021-21419.json · Rebuilt by cve.day 2026-11-25T22:58:01.230Z
