Deadlock Affecting vyper package, versions [0.2.9,0.3.10rc4)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.09% (40th 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-PYTHON-VYPER-5905483
  • published19 Sept 2023
  • disclosed18 Sept 2023
  • credittrocher

Introduced: 18 Sep 2023

CVE-2023-42441  (opens in a new tab)
CWE-833  (opens in a new tab)

How to fix?

Upgrade vyper to version 0.3.10rc4 or higher.

Overview

vyper is a Pythonic Smart Contract Language for the EVM.

Affected versions of this package are vulnerable to Deadlock via the @nonreentrant("") or @nonreentrant('') lock types that do not produce reentrancy checks at runtime. This vulnerability allows an attacker to bypass reentrancy checks when executing the affected functions.

Workaround

The lock name should be a non-empty string.

CVSS Scores

version 3.1