aresch/rencode · Security
Infinite Loop in rencode
- GHSA ID
- GHSA-gh8j-2pgf-x458
- CVE ID
- CVE-2021-40839
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v4
- 8.7 · 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
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.
CWEs
- CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-40839 ↗
- https://github.com/aresch/rencode/pull/29 ↗
- https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75 ↗
- https://pypi.org/project/rencode/#history ↗
- https://seclists.org/fulldisclosure/2021/Sep/16 ↗
- https://github.com/advisories/GHSA-gh8j-2pgf-x458 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/rencode/PYSEC-2021-345.yaml ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6 ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY ↗
- https://security.netapp.com/advisory/ntap-20211008-0001 ↗