NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

CVE-2021-40839 — rencode

HIGHFix: aresch/rencode@572ff74

CVE-2021-40839 is a high-severity (CVSS 7.5) CWE-835 vulnerability in rencode. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.

Infinite Loop in rencode

Also known asGHSA-gh8j-2pgf-x458PYSEC-2021-345
Published
Updated
Affected
1 pkg
Patched
See advisory
Exploits
None indexed
Exploitation data as of Nov 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
5.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs93th percentile — riskier than 93% of all scored CVEsHighest risk
1.94%8.23%14.5%20.8%13.8%5.5%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐍rencode

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

1 total
EcosystemPackageVulnerable rangeFix
🐍PyPIrencodeall versionsNo fix

Affected Products

2 products · 3 configurations
OS
fedorafedoraproject
2 versions
3435
Application
rencoderencode_project
≤ 1.0.6
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for rencode, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Remediation status

    The records we use list no patched version of rencode for CVE-2021-40839. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.

  3. Mitigate without a patch

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-40839 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2021-40839: rencode: Infinite Loop