Advisory

GHSA-3hg2-r75x-g69m

Also known as: CVE-2023-42441, PYSEC-2023-305

Summary

Vyper has incorrect re-entrancy lock when key is empty string

Details

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?_

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-09-18 19:20 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0.2.9, fixed 0.3.10 (ecosystem)

Fixed versions

0.3.10

Fix

  • Fixed version 0.3.10
    pip install --upgrade vyper==0.3.10

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences