Loop with Unreachable Exit Condition ('Infinite Loop') Affecting py3-rencode package, versions <1.0.6-r7


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
5.52% (93rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE317-PY3RENCODE-3143587
  • published23 Nov 2022
  • disclosed10 Sept 2021

Introduced: 10 Sep 2021

CVE-2021-40839  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Alpine:3.17 py3-rencode to version 1.0.6-r7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-rencode package and not the py3-rencode package as distributed by Alpine. See How to fix? for Alpine:3.17 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1