Buffer overflow in Vyperlang Vyper

CVE-2023-31146

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.

Vulnerability class: Buffer Overflow

EPSS: 0.012 (67.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2023-31146?
CVE-2023-31146 is a high-severity vulnerability in Vyperlang Vyper, classified under Out-of-bounds Write. CVSS score: 7.5/10. Published 2023-05-11.
How severe is CVE-2023-31146?
High severity. CVSS v3 base score is 7.5 out of 10.