vyper
Affected
- introduced
0.2.9, fixed0.3.10(ecosystem)
Fixed versions
0.3.10
Fix
- Fixed version
0.3.10pip install --upgrade vyper==0.3.10
Advisory
Also known as: CVE-2023-42441, PYSEC-2023-305
Vyper has incorrect re-entrancy lock when key is empty string
Impact
Locks of the type @nonreentrant("") or @nonreentrant('') do not produce reentrancy checks at runtime.
@nonreentrant("") # unprotected
@external
def bar():
pass
@nonreentrant("lock") # protected
@external
def foo():
pass
Patches
Patched in #3605
Workarounds
The lock name should be a non-empty string.
References
_Are there any links users can visit to find out more?_
Medium Basis: The source's own band: MODERATE
0.2.9, fixed 0.3.10 (ecosystem)0.3.10
0.3.10pip install --upgrade vyper==0.3.10Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0