{"api_version":"1","generated_at":"2026-07-23T20:27:26+00:00","cve":"CVE-2021-40839","urls":{"html":"https://cve.report/CVE-2021-40839","api":"https://cve.report/api/cve/CVE-2021-40839.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40839","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40839"},"summary":{"title":"CVE-2021-40839","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-09-10 02:15:00","updated_at":"2023-11-07 03:38:00"},"problem_types":["CWE-835"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6/","name":"FEDORA-2022-02340931ec","refsource":"FEDORA","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] Fedora 34 Update: python-rencode-1.0.6-17.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://seclists.org/fulldisclosure/2021/Sep/16","name":"https://seclists.org/fulldisclosure/2021/Sep/16","refsource":"MISC","tags":[],"title":"Full Disclosure: rencode 3-byte packet DoS","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6/","name":"FEDORA-2022-02340931ec","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: python-rencode-1.0.6-17.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75","name":"https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75","refsource":"MISC","tags":[],"title":"Fix checking if typecode is valid while decoding. · aresch/rencode@572ff74 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/aresch/rencode/pull/29","name":"https://github.com/aresch/rencode/pull/29","refsource":"MISC","tags":[],"title":"fix typecode decoding DoS by totaam · Pull Request #29 · aresch/rencode · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY/","name":"FEDORA-2022-1033a2718b","refsource":"FEDORA","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] Fedora 35 Update: python-rencode-1.0.6-17.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20211008-0001/","name":"https://security.netapp.com/advisory/ntap-20211008-0001/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-40839 Python Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY/","name":"FEDORA-2022-1033a2718b","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: python-rencode-1.0.6-17.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://pypi.org/project/rencode/#history","name":"https://pypi.org/project/rencode/#history","refsource":"MISC","tags":[],"title":"rencode · PyPI","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40839","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40839","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"40839","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40839","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40839","vulnerable":"1","versionEndIncluding":"1.0.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rencode_project","cpe5":"rencode","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-40839","qid":"183781","title":"Debian Security Update for python-rencode (CVE-2021-40839)"},{"cve":"CVE-2021-40839","qid":"282384","title":"Fedora Security Update for python (FEDORA-2022-02340931ec)"},{"cve":"CVE-2021-40839","qid":"282385","title":"Fedora Security Update for python (FEDORA-2022-1033a2718b)"},{"cve":"CVE-2021-40839","qid":"502924","title":"Alpine Linux Security Update for py3-rencode"},{"cve":"CVE-2021-40839","qid":"505803","title":"Alpine Linux Security Update for py3-rencode"},{"cve":"CVE-2021-40839","qid":"691120","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py39 (70d0d2ec-cb62-11ed-956f-7054d21a9e2a)"},{"cve":"CVE-2021-40839","qid":"980459","title":"Python (pip) Security Update for rencode (GHSA-gh8j-2pgf-x458)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-40839","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/aresch/rencode/pull/29","refsource":"MISC","name":"https://github.com/aresch/rencode/pull/29"},{"url":"https://seclists.org/fulldisclosure/2021/Sep/16","refsource":"MISC","name":"https://seclists.org/fulldisclosure/2021/Sep/16"},{"url":"https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75","refsource":"MISC","name":"https://github.com/aresch/rencode/commit/572ff74586d9b1daab904c6f7f7009ce0143bb75"},{"url":"https://pypi.org/project/rencode/#history","refsource":"MISC","name":"https://pypi.org/project/rencode/#history"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20211008-0001/","url":"https://security.netapp.com/advisory/ntap-20211008-0001/"},{"refsource":"FEDORA","name":"FEDORA-2022-02340931ec","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BMVQRPDVSVZNGGX57CFKCYT3DEYO4QB6/"},{"refsource":"FEDORA","name":"FEDORA-2022-1033a2718b","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MCLETLGVM5DBX6QNHQFW6TWGO5T3DENY/"}]}},"nvd":{"publishedDate":"2021-09-10 02:15:00","lastModifiedDate":"2023-11-07 03:38:00","problem_types":["CWE-835"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rencode_project:rencode:*:*:*:*:*:python:*:*","versionEndIncluding":"1.0.6","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"40839","Ordinal":"216605","Title":"CVE-2021-40839","CVE":"CVE-2021-40839","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"40839","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"40839","Ordinal":"2","NoteData":"2021-09-09","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"40839","Ordinal":"3","NoteData":"2022-02-14","Type":"Other","Title":"Modified"}]}}}