CVE-2023-31146
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.
How to fix
- vyperlang vyper0.3.8 or later
- vyper0.3.8 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vyperlang vyper | v < 0.3.8 | 0.3.8 |
| vyperPyPI | v < 0.3.8 | 0.3.8 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.