CVE-2023-32058Vyperlang Vyper
High 7.5 No auth needed
Follow: this CVE · Vyperlang · Vyperlang Vyper We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 60
- Auth required
- No
- Published
- May 11, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Vyper.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | vyper |
< 0.3.8 |
0.3.8 |
pip install "vyper>=0.3.8" |
| PyPI | vyper |
< 0.3.8 |
0.3.8 |
pip install "vyper>=0.3.8" |
Per OSV / GitHub Advisories (GHSA-6r8q-pfpv-7cgj, PYSEC-2023-78). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vyperlang | vyper | < 0.3.8 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory