CVE catalog

CVE-2021-40839

python-rencode: CVE-2021-40839

[CVE catalog]

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.

DistributionPackageReleaseVersionStatus
Debianpython-rencodesid1.0.6-2.1fixed
Debianpython-rencodeforky1.0.6-2.1fixed
Debianpython-rencodetrixie1.0.6-2fixed
Debianpython-rencodebookworm1.0.6-2fixed
Ubuntupython-rencode16.041.0.3-1build1vulnerable
Ubuntupython-rencode16.041.0.3-1build2vulnerable
Ubuntupython-rencode18.041.0.5-1build2vulnerable
Ubuntupython-rencode20.041.0.5-1build4vulnerable
Ubuntupython-rencode20.041.0.5-1build5vulnerable
Ubuntupython-rencode20.041.0.5-1.1vulnerable
Ubuntupython-rencode20.041.0.6-1vulnerable
Ubuntupython-rencode20.041.0.6-1build1vulnerable
Ubuntupython-rencode22.041.0.6-1build3vulnerable
Ubuntupython-rencode22.041.0.6-2vulnerable
Ubuntupython-rencode22.041.0.6-2build1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-rencodesourcesid1.0.6-2not yet assignedNot reportedNot reported
Debianpython-rencodesourceforky1.0.6-2not yet assignedNot reportedNot reported
Debianpython-rencodesourcetrixie1.0.6-2not yet assignedNot reportedNot reported
Debianpython-rencodesourcebookworm1.0.6-2not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [python-rencode]

    Details (2)
    • 1.0.6-2+b4 · amd64 · bookworm

      Fixed · Fixed: 1.0.6-2

      dsa · python-rencode · debian · bookworm; dsa · python-rencode · debian · 12

    • 1.0.6-2+b4 · arm64 · bookworm

      Fixed · Fixed: 1.0.6-2

      dsa · python-rencode · debian · bookworm; dsa · python-rencode · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-rencode]

    Details (2)
    • 1.0.6-2+b8 · amd64 · trixie

      Fixed · Fixed: 1.0.6-2

      dsa · python-rencode · debian · 13

    • 1.0.6-2+b9 · arm64 · trixie

      Fixed · Fixed: 1.0.6-2

      dsa · python-rencode · debian · 13

Observed:

References