CVE-2023-31146CWE-787

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

High · published May 11, 2023

CVSS v3.1
7.5
EPSS
1%
Percentile
69.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01241 · 69.0th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2023-05-11T20:51Z
EPSS history
Timeline
  • 11 MAY 20:51Z
    Vyper vulnerable to OOB DynArray access when array is on both LHS and RHS of an assignment
    cvelistv5