Moderate severityNVD Advisory· Published May 19, 2023· Updated Feb 12, 2025
Nonpayable default functions are sometimes payable in vyper
CVE-2023-32675
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vyperPyPI | < 0.3.8 | 0.3.8 |
Affected products
2Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-vxmm-cwh2-q762ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-32675ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-80.yamlghsaWEB
- github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520ghsax_refsource_MISCWEB
- github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520.ghsaWEB
- github.com/vyperlang/vyper/commit/903727006c1e5ebef99fa9fd5d51d62bd33d72a9ghsaWEB
- github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.