Levenshtein: Remote Code Execution — GLSA 202408-04

A vulnerability has been discovered in Levenshtein, which could lead to a remote code execution.

Affected packages

dev-python/Levenshtein on all architectures
Affected versions < 0.12.1
Unaffected versions >= 0.12.1

Background

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

Description

Fixed handling of numerous possible wraparounds in calculating the size of memory allocations; incorrect handling of which could cause denial of service or even possible remote code execution.

Impact

Fixed handling of numerous possible wraparounds in calculating the size of memory allocations; incorrect handling of which could cause denial of service or even possible remote code execution.

Workaround

There is no known workaround at this time.

Resolution

All Levenshtein users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-python/Levenshtein-0.12.1"
 

References

Release date
August 07, 2024

Latest revision
August 07, 2024: 1

Severity
normal

Exploitable
remote

Bugzilla entries