Denial of Service (DoS) Affecting python-levenshtein package, versions [0,0.12.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Learn

Learn about Denial of Service (DoS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYTHONLEVENSHTEIN-1061894
  • published2 Feb 2021
  • disclosed17 Jan 2021
  • creditCris Neckar

Introduced: 17 Jan 2021

CVE NOT AVAILABLE CWE-400  (opens in a new tab)

How to fix?

Upgrade python-Levenshtein to version 0.12.1 or higher.

Overview

python-Levenshtein is a Python extension for computing string edit distances and similarities.

Affected versions of this package are vulnerable to Denial of Service (DoS) via the lev_edit_distance() function. Incorrect handling of numerous possible wraparounds in calculating the size of memory allocations, which could cause Denial of Service or even possible remote code execution.

CVSS Scores

version 3.1