Skip to main content
← All vulnerabilities
CVE-2023-31146PYSEC-2023-77GHSA-3P37-3636-Q8WV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • vyperlang vyper

    fixed in 0.3.8

  • vyperPyPI

    fixed in 0.3.8

References 2

GitHub · vyperlang/vyper