CVE-2021-40839
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
rencode (PyPI)up to 1.0.6, before 572ff74586d9b1daab904c6f7f7009ce0143bb75, all versionsGitHub Advisory Database, PyPA Advisory Database
rencode_project rencodeup to 1.0.6NVD
fedoraproject fedora34, 35NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

https://github.com/aresch/rencode/pull/29patch, third-party-advisory, web
https://seclists.org/fulldisclosure/2021/Sep/16mailing-list, third-party-advisory, web
https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75fix, patch, third-party-advisory, web
https://pypi.org/project/rencode/#historypackage, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20211008-0001/third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY/vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-40839advisory
https://github.com/advisories/GHSA-gh8j-2pgf-x458advisory
https://github.com/aresch/rencodepackage
https://github.com/pypa/advisory-database/tree/main/vulns/rencode/PYSEC-2021-345.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6web

Sources

SourceRecordLicence
CVE ListCVE-2021-40839 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-gh8j-2pgf-x458 changed 2024-10-26CC-BY-4.0
NVDCVE-2021-40839 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-345 changed 2025-10-09CC-BY-4.0