PT-2024-20455 · Vyper · Vyper
Trocher
·
Published
2024-02-26
·
Updated
2025-01-16
·
CVE-2024-24564
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Vyper versions prior to 0.4.0
Description
The issue arises when using the built-in
extract32(b, start) function in Vyper, a pythonic Smart Contract Language for the Ethereum virtual machine. If the start index provided has a side effect that updates b, the byte array, it could lead to reading and returning dirty memory.Recommendations
For versions prior to 0.4.0, update to version 0.4.0 or later to resolve the issue. As a temporary workaround, consider avoiding the use of the
extract32(b, start) function when the start index has a side effect that updates b. Restrict access to the extract32 function to minimize the risk of exploitation.Exploit
Fix
Out of bounds Read
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Vyper