CVE-2023-32058CWE-190

Vyper vulnerable to integer overflow in loop

High · published May 11, 2023

CVSS v3.1
7.5
EPSS
1%
Percentile
59.7
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, 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.

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:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00913 · 59.7th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2023-05-11T20:55Z
EPSS history
Timeline
  • 11 MAY 20:55Z
    Vyper vulnerable to integer overflow in loop
    cvelistv5