PT-2024-24741 · Vyper · Vyper
Charles-Cooper
·
Published
2024-04-25
·
Updated
2026-03-12
·
CVE-2024-32648
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Vyper versions prior to 0.3.0
Description
The issue concerns the
default () function not respecting the @nonreentrancy decorator, and the lock not being emitted. This is a known bug with low impact, as using a lock on a default function is a sparsely used pattern. No vulnerable production contracts were found.Recommendations
For versions prior to 0.3.0, update to version 0.3.0 or later to resolve the issue. As a temporary workaround, consider avoiding the use of the
@nonreentrancy decorator on default () functions until a patch is applied.Exploit
Fix
Improper Locking
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Vyper