CVE-2024-24560
published low CVSS 3.1 · 3.7Vyper external calls can overflow return data to return input buffer
Package status and fixes
Description
Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. When calls to external contracts are made, we write the input buffer starting at byte 28, and allocate the return buffer to start at byte 0 (overlapping with the input buffer). When checking RETURNDATASIZE for dynamic types, the size is compared only to the minimum allowed size for that type, and not to the returned value's length. As a result, malformed return data can cause the contract to mistake data from the input buffer for returndata. When the called contract returns invalid ABIv2 encoded data, the calling contract can read different invalid data (from the dirty buffer) than the called contract returned.
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
- 3.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
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 |
| vyperlang | vyper | 0 through 0.3.10 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-119 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
References
1Provider assertions
3GitHub_M · cna
Vyper external calls can overflow return data to return input buffer
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 08c1ebc2960e7cd96d1b2dc3b1fafb4ccf204e2c876f7b6d0af820e26c4a9569
- Ingested
- 23 Sep 2026, 08:19:54 UTC
- Source record
- Official CVE record