CVE-2023-32675
published low CVSS 3.1 · 3.7Nonpayable default functions are sometimes payable in vyper
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vyperlang | — | vyper< 0.3.8 | Affected | Not stated | GitHub_M |
Description
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In contracts with more than one regular nonpayable function, it is possible to send funds to the default function, even if the default function is marked `nonpayable`. This applies to contracts compiled with vyper versions prior to 0.3.8. This issue was fixed by the removal of the global `calldatasize` check in commit `02339dfda`. Users are advised to upgrade to version 0.3.8. Users unable to upgrade should avoid use of nonpayable default functions.
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:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vyperlang | vyper | < 0.3.8 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-670 CWE-670: Always-Incorrect Control Flow Implementation
References
2Provider assertions
3GitHub_M · cna
Nonpayable default functions are sometimes payable in vyper
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5b537605c290e97263c10e2c0d791f8a0473a41910414587500db10799312627
- Ingested
- 23 Sep 2026, 08:09:09 UTC
- Source record
- Official CVE record