Skip to content

CVE-2021-40839 Infinite Loop in rencode

HighCVSS 7.5 EPSS 5.5%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

18 packages: 12 fixed, 1 partially fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/python-rencode(Ubuntu 16.04) = 1.0.3-1build1; = 1.0.3-1build2; All versions No fix listed No fix yet
ubuntu/python-rencode(Ubuntu 18.04) = 1.0.5-1build2; All versions No fix listed No fix yet
ubuntu/python-rencode(Ubuntu 20.04) = 1.0.5-1.1; = 1.0.5-1build4; = 1.0.5-1build5; = 1.0.6-1 +2 more No fix listed No fix yet
ubuntu/python-rencode(Ubuntu 22.04) = 1.0.6-1build3; = 1.0.6-2; = 1.0.6-2build1; All versions No fix listed No fix yet
pypi rencode(PyPI) <= 1.0.6; = 1.0.3; = 1.0.4; = 1.0.5 +4 more after 1.0.6 Partially fixed
alpine/py3-rencode(Alpine v3.17) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.18) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.19) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.20) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.21) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.22) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.23) < 1.0.6-r7 1.0.6-r7 Fixed
alpine/py3-rencode(Alpine v3.24) < 1.0.6-r7 1.0.6-r7 Fixed
debian/python-rencode(Debian 12) < 1.0.6-2 1.0.6-2 Fixed
debian/python-rencode(Debian 13) < 1.0.6-2 1.0.6-2 Fixed
debian/python-rencode(Debian 14) < 1.0.6-2 1.0.6-2 Fixed
rencode project rencode <= 1.0.6 after 1.0.6 Fixed
fedoraproject fedora = 34; = 35 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi rencode(PyPI) <= 1.0.6 No fix listed
pypi rencode(PyPI) = 1.0.3 No fix listed
pypi rencode(PyPI) = 1.0.4 No fix listed
pypi rencode(PyPI) = 1.0.5 No fix listed
pypi rencode(PyPI) = 1.0.6 No fix listed
pypi rencode(PyPI) All versions No fix listed
pypi rencode(PyPI) = 1.0.7 No fix listed
pypi rencode(PyPI) = 1.0.8 No fix listed
debian/python-rencode(Debian:12) < 1.0.6-2 1.0.6-2
debian/python-rencode(Debian:13) < 1.0.6-2 1.0.6-2
debian/python-rencode(Debian:14) < 1.0.6-2 1.0.6-2
ubuntu/python-rencode(Ubuntu:22.04) All versions No fix listed
rencode project rencode <= 1.0.6 No fix listed
fedoraproject fedora = 34 No fix listed
fedoraproject fedora = 35 No fix listed
alpine/py3-rencode(Alpine:v3.17) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.18) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.19) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.20) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.21) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.22) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.23) < 1.0.6-r7 1.0.6-r7
alpine/py3-rencode(Alpine:v3.24) < 1.0.6-r7 1.0.6-r7
ubuntu/python-rencode(Ubuntu:16.04) All versions No fix listed
ubuntu/python-rencode(Ubuntu:16.04) = 1.0.3-1build1 No fix listed
Show 12 more
ProductAffected versionsFixed in
ubuntu/python-rencode(Ubuntu:16.04) = 1.0.3-1build2 No fix listed
ubuntu/python-rencode(Ubuntu:18.04) All versions No fix listed
ubuntu/python-rencode(Ubuntu:18.04) = 1.0.5-1build2 No fix listed
ubuntu/python-rencode(Ubuntu:20.04) All versions No fix listed
ubuntu/python-rencode(Ubuntu:20.04) = 1.0.5-1build4 No fix listed
ubuntu/python-rencode(Ubuntu:20.04) = 1.0.5-1build5 No fix listed
ubuntu/python-rencode(Ubuntu:20.04) = 1.0.5-1.1 No fix listed
ubuntu/python-rencode(Ubuntu:20.04) = 1.0.6-1 No fix listed
ubuntu/python-rencode(Ubuntu:20.04) = 1.0.6-1build1 No fix listed
ubuntu/python-rencode(Ubuntu:22.04) = 1.0.6-1build3 No fix listed
ubuntu/python-rencode(Ubuntu:22.04) = 1.0.6-2 No fix listed
ubuntu/python-rencode(Ubuntu:22.04) = 1.0.6-2build1 No fix listed

References