{"cve":"CVE-2023-32058","nvd":{"published":"2023-05-11T21:15:10.397","modified":"2026-06-17T05:57:59.007","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-190"],"references":["https://github.com/vyperlang/vyper/commit/3de1415ee77a9244eb04bdb695e249d3ec9ed868","https://github.com/vyperlang/vyper/security/advisories/GHSA-6r8q-pfpv-7cgj","https://github.com/vyperlang/vyper/commit/3de1415ee77a9244eb04bdb695e249d3ec9ed868","https://github.com/vyperlang/vyper/security/advisories/GHSA-6r8q-pfpv-7cgj"],"products":["vyperlang:vyper"],"source":"nvd","synced_at":"2026-10-19T21:38:18.424950729+00:00"},"epss":{"cve":"CVE-2023-32058","score":0.00913,"percentile":0.60079,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6r8q-pfpv-7cgj","url":"https://osv.dev/vulnerability/GHSA-6r8q-pfpv-7cgj","summary":"Vyper vulnerable to integer overflow in loop","modified":"2026-09-10T03:50:01.254556464Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.3.8"],"fixed":["0.3.8"]}]},{"id":"PYSEC-2023-78","url":"https://osv.dev/vulnerability/PYSEC-2023-78","summary":"","modified":"2023-11-08T04:12:32.824780Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.3.8"],"fixed":["0.3.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}