PT-2023-22992 · Vyper · Vyper

Toon Vanhove

+1

·

Published

2023-05-05

·

Updated

2023-08-02

·

CVE-2023-30837

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Vyper versions prior to 0.3.8
Description The storage allocator in Vyper does not guard against allocation overflows, allowing an attacker to overwrite the owner variable. This issue can be exploited by calling a contract with specific calldata, enabling the attacker to modify the owner variable. The issue was fixed in version 0.3.8.
Recommendations For versions prior to 0.3.8, update to version 0.3.8 to resolve the issue. As a temporary workaround, consider restricting access to the foo function until the update is applied. Avoid using the buffer variable in the affected contract until the issue is resolved.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2023-30837
GHSA-MGV8-GGGW-MRG6
PYSEC-2023-76

Affected Products

Vyper