Vulnerabilities · 2023 · Vyperlang
CVE-2023-32058
Vyperlang Vyper vulnerability
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.
Affected products
Vyper. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vyperlang Vyper runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vyperlang/vyper/security/advisories/GHSA-6r8q-pfpv-7cgj · Exploit
- github.com/vyperlang/vyper/commit/3de1415ee77a9244eb04bdb695e249d3ec9ed868 · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-32058
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-78.yaml
- github.com/advisories/GHSA-6r8q-pfpv-7cgj
- nvd.nist.gov/vuln/detail/CVE-2023-32058
- cve.org/CVERecord?id=CVE-2023-32058
More vulnerabilities in Vyperlang products
CVE-2025-27105CVE-2025-27104CVE-2025-26622CVE-2025-21607CVE-2024-32649CVE-2024-32648CVE-2024-32647CVE-2024-32646All 38
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.