CVE-2021-40839
publishedpython-rencode: an infinite loop in typecode decoding allowing a remote DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.17 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.18 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.19 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.20 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.21 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.22 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
| Alpine Linux | v3.24 | py3-rencode | Fixed | 1.0.6-r7 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
7- https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75
- https://github.com/aresch/rencode/pull/29
- FEDORA-2022-02340931ec https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6/
- FEDORA-2022-1033a2718b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY/
- https://pypi.org/project/rencode/#history
- https://seclists.org/fulldisclosure/2021/Sep/16
- https://security.netapp.com/advisory/ntap-20211008-0001/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1d810307205d6ea09244f5c5fa06937c1e85f432e3fd80906db96e47fc07b50e
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record