CVE-2024-24559Vyperlang Vyper
Medium 5.3 No auth needed
Follow: this CVE · Vyperlang · Vyperlang Vyper We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 22
- Auth required
- No
- Published
- Feb 5, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-327
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
Vyper is a Pythonic Smart Contract Language for the EVM. There is an error in the stack management when compiling the `IR` for `sha3_64`. Concretely, the `height` variable is miscalculated. The vulnerability can't be triggered without writing the `IR` by hand (that is, it cannot be triggered from regular vyper code). `sha3_64` is used for retrieval in mappings. No flow that would cache the `key` was found so the issue shouldn't be possible to trigger when compiling the compiler-generated `IR`. This issue isn't triggered during normal compilation of vyper code so the impact is low. At the time of publication there is no patch available.
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.4.0 |
0.4.0 |
pip install "vyper>=0.4.0" |
| PyPI | vyper |
< 0.4.0b1 |
0.4.0b1 |
pip install "vyper>=0.4.0b1" |
Per OSV / GitHub Advisories (GHSA-6845-xw22-ffxv, PYSEC-2024-147). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vyperlang | vyper | ≤ 0.3.10 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Vendor Advisory