Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. rencode
  4. ›
  5. CVE-2021-40839

CVE-2021-40839: Infinite Loop in rencode

September 13, 2021 (updated October 26, 2024)

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.

References

  • github.com/advisories/GHSA-gh8j-2pgf-x458
  • github.com/aresch/rencode
  • github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75
  • github.com/aresch/rencode/pull/29
  • github.com/pypa/advisory-database/tree/main/vulns/rencode/PYSEC-2021-345.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY
  • nvd.nist.gov/vuln/detail/CVE-2021-40839
  • pypi.org/project/rencode/
  • seclists.org/fulldisclosure/2021/Sep/16
  • security.netapp.com/advisory/ntap-20211008-0001

Code Behaviors & Features

Detect and mitigate CVE-2021-40839 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.6

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

pypi/rencode/CVE-2021-40839.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.