CVE-2023-32675
MEDIUM 5.3CVSS 3.1Vyper's nonpayable default functions are sometimes payable
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.
- Published
- 19 May 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-670
- Also known as
- GHSA-vxmm-cwh2-q762PYSEC-2023-80
- Sources
- NVDJSONOSV GHSA-vxmm-cwh2-q762JSONOSV PYSEC-2023-80JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:* |
< 0.3.8 | 0.3.8 |
| OSV | PyPI | vyper | < 0.3.8 | 0.3.8 |
References
- https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520 · Patch, WEB
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762 · Exploit, Patch, Vendor Advisory, WEB, EVIDENCE, FIX, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-32675 · ADVISORY
- https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520. · WEB, FIX
- https://github.com/vyperlang/vyper/commit/903727006c1e5ebef99fa9fd5d51d62bd33d72a9 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-80.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 19 May 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 May 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 May 2023)