CVE-2024-24561
published critical CVSS 3.1 · 9.8Vyper bounds check on built-in `slice()` function can be overflowed
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vyperlang | — | vyper<= 0.3.10 | Affected | Not stated | GitHub_M |
Description
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.10 and earlier, the bounds check for slices does not account for the ability for start + length to overflow when the values aren't literals. If a slice() function uses a non-literal argument for the start or length variable, this creates the ability for an attacker to overflow the bounds check. This issue can be used to do OOB access to storage, memory or calldata addresses. It can also be used to corrupt the length slot of the respective array.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vyperlang | vyper | <= 0.3.10 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-119 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
References
3Provider assertions
3GitHub_M · cna
Vyper bounds check on built-in `slice()` function can be overflowed
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 345b47fdb32d5cad7f09ce46c508ff6404bd2d76890f00262e19400807badef1
- Ingested
- 23 Sep 2026, 08:19:54 UTC
- Source record
- Official CVE record