CVE-2021-40839
7.5high
Infinite Loop in rencode
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 5.52% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-gh8j-2pgf-x458PYSEC-2021-345
Description
The rencode package through 1.0.6 for Python allows an infinite loop in typecode decoding (such as via ;\x2f\x7f), enabling a remote attack that consumes CPU and memory.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rencode (PyPI) | up to 1.0.6, before 572ff74586d9b1daab904c6f7f7009ce0143bb75, all versions | GitHub Advisory Database, PyPA Advisory Database |
| rencode_project rencode | up to 1.0.6 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 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
The rencode package through 1.0.6 for Python allows an infinite loop in typecode decoding (such as via ;\x2f\x7f), enabling a remote attack that consumes CPU and memory.
NVD (es)
El paquete rencode versiones hasta 1.0.6 para Python, permite un bucle infinito en la decodificación de typecode (como por medio de ;x2f\x7f), permitiendo un ataque remoto que consume CPU y memoria
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-40839 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gh8j-2pgf-x458 changed 2024-10-26 | CC-BY-4.0 |
| NVD | CVE-2021-40839 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-345 changed 2025-10-09 | CC-BY-4.0 |