PT-2022-16880 · Vyper · Vyper
Charles-Cooper
·
Published
2022-04-13
·
Updated
2023-08-02
·
CVE-2022-24788
CVSS v2.0
7.5
High
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Name of the Vulnerable Software and Affected Versions
Vyper versions prior to 0.3.2
Description
The issue arises when importing a function from a JSON interface that returns
bytes, generating bytecode that does not clamp the bytes length, potentially resulting in a buffer overrun. There are no known real-world incidents or estimated numbers of affected devices mentioned.Recommendations
For versions prior to 0.3.2, upgrade to version 0.3.2 or later to resolve the issue.
As a temporary workaround, consider using .vy interfaces instead of importing from JSON interfaces that return
bytes.Exploit
Fix
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Vyper