
CVE catalog
CVE-2021-40839
python-rencode: CVE-2021-40839
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 5.52% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-rencode | sid | 1.0.6-2.1 | fixed |
| Debian | python-rencode | forky | 1.0.6-2.1 | fixed |
| Debian | python-rencode | trixie | 1.0.6-2 | fixed |
| Debian | python-rencode | bookworm | 1.0.6-2 | fixed |
| Ubuntu | python-rencode | 16.04 | 1.0.3-1build1 | vulnerable |
| Ubuntu | python-rencode | 16.04 | 1.0.3-1build2 | vulnerable |
| Ubuntu | python-rencode | 18.04 | 1.0.5-1build2 | vulnerable |
| Ubuntu | python-rencode | 20.04 | 1.0.5-1build4 | vulnerable |
| Ubuntu | python-rencode | 20.04 | 1.0.5-1build5 | vulnerable |
| Ubuntu | python-rencode | 20.04 | 1.0.5-1.1 | vulnerable |
| Ubuntu | python-rencode | 20.04 | 1.0.6-1 | vulnerable |
| Ubuntu | python-rencode | 20.04 | 1.0.6-1build1 | vulnerable |
| Ubuntu | python-rencode | 22.04 | 1.0.6-1build3 | vulnerable |
| Ubuntu | python-rencode | 22.04 | 1.0.6-2 | vulnerable |
| Ubuntu | python-rencode | 22.04 | 1.0.6-2build1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-rencode | source | sid | 1.0.6-2 | not yet assigned | Not reported | Not reported |
| Debian | python-rencode | source | forky | 1.0.6-2 | not yet assigned | Not reported | Not reported |
| Debian | python-rencode | source | trixie | 1.0.6-2 | not yet assigned | Not reported | Not reported |
| Debian | python-rencode | source | bookworm | 1.0.6-2 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-rencode]Fixed
Source package: [python-rencode]
Details (2)
1.0.6-2+b4· amd64 · bookwormFixed · Fixed:
1.0.6-2dsa · python-rencode · debian · bookworm; dsa · python-rencode · debian · 12
1.0.6-2+b4· arm64 · bookwormFixed · Fixed:
1.0.6-2dsa · python-rencode · debian · bookworm; dsa · python-rencode · debian · 12
[Debian 13 (Trixie)]
- [python3-rencode]Fixed
Source package: [python-rencode]
Details (2)
1.0.6-2+b8· amd64 · trixieFixed · Fixed:
1.0.6-2dsa · python-rencode · debian · 13
1.0.6-2+b9· arm64 · trixieFixed · Fixed:
1.0.6-2dsa · python-rencode · debian · 13
Observed: