High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40839
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:20 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-40839
Complete source record
{
"id": "86daf2a6f257163d46067b4e2cd8eb0e979838741ef71e8717d6f1d782fc29de",
"url": "https://osv.dev/vulnerability/CVE-2021-40839",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40839",
"summary": "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.",
"evidence": "osv:CVE-2021-40839",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40839",
"aliases": [
"CVE-2021-40839",
"GHSA-gh8j-2pgf-x458",
"PYSEC-2021-345"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/aresch/rencode",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "53d72ac53d9df007aad3a980f049a80d81836619"
},
{
"fixed": "572ff74586d9b1daab904c6f7f7009ce0143bb75"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:rencode_project:rencode:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.0.6"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "572ff74586d9b1daab904c6f7f7009ce0143bb75"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.0.6",
"v1.0.5",
"v1.0.4",
"v1.0.3",
"v1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40839.json"
}
}
],
"modified": "2026-10-20T10:53:56.204211189Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6/",
"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/",
"https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75",
"https://github.com/aresch/rencode/pull/29"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "34"
},
{
"last_affected": "34"
},
{
"introduced": "35"
},
{
"last_affected": "35"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-40839",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384777,
"published_at": "2021-09-10T02:15:07.933+00:00"
}