High severityNVD Advisory· Published May 11, 2023· Updated Jan 24, 2025
Vyper vulnerable to integer overflow in loop
CVE-2023-32058
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vyperPyPI | < 0.3.8 | 0.3.8 |
Affected products
2Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-6r8q-pfpv-7cgjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-32058ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-78.yamlghsaWEB
- github.com/vyperlang/vyper/commit/3de1415ee77a9244eb04bdb695e249d3ec9ed868ghsax_refsource_MISCWEB
- github.com/vyperlang/vyper/security/advisories/GHSA-6r8q-pfpv-7cgjghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.