Skip to main content
← All vulnerabilities
CVE-2023-32058GHSA-6R8Q-PFPV-7CGJPYSEC-2023-78

Vyper vulnerable to integer overflow in loop

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, due to missing overflow check for loop variables, by assigning the iterator of a loop to a variable, it is possible to overflow the type of the latter. The issue seems to happen only in loops of type `for i in range(a, a + N)` as in loops of type `for i in range(start, stop)` and `for i in range(stop)`, the compiler is able to raise a `TypeMismatch` when trying to overflow the variable. The problem has been patched in version 0.3.8.

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