Skip to content
OpenAdvisories
High · 7.5 CVE-2023-31146 EUVD-2023-0270GHSA-3p37-3636-q8wvPYSEC-2023-77

Vyper vulnerable to OOB DynArray access when array is on both LHS and RHS of an assignment

Published May 11, 2023 · Updated Jan 24, 2025 · Assigned by GitHub_M

Description

Vyper is a Pythonic smart contract language for the Ethereum virtual machine. Prior to version 0.3.8, during codegen, the length word of a dynarray is written before the data, which can result in out-of-bounds array access in the case where the dynarray is on both the lhs and rhs of an assignment. The issue can cause data corruption across call frames. The expected behavior is to revert due to out-of-bounds array access. Version 0.3.8 contains a patch for this issue.

Affected products

VendorProductAffectedFixed
vyperlang vyper < 0.3.8 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI vyper < 0.3.8 0.3.8 GHSA-3p37-3636-q8wv

References