# CVE-2023-32675: Nonpayable default functions are sometimes payable in vyper

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 41% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-05-19T19:46:18.047Z
- Modified: 2026-06-17T05:59:21.897Z
- Also known as: GHSA-vxmm-cwh2-q762, PYSEC-2023-80
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.3.8; before 0.3.8
- vyper (PyPI): before 0.3.8; before 02339dfda0f3caabad142060d511d10bfe93c520.

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762> (exploit, advisory, evidence, fix, patch, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-32675> (advisory)
- <https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520.> (fix, web)
- <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)

## Sources

- CVE List: [CVE-2023-32675](https://www.cve.org/CVERecord?id=CVE-2023-32675), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-vxmm-cwh2-q762](https://github.com/advisories/GHSA-vxmm-cwh2-q762), CC-BY-4.0, modified 2026-02-22
- NVD: [CVE-2023-32675](https://nvd.nist.gov/vuln/detail/CVE-2023-32675), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-80](https://osv.dev/vulnerability/PYSEC-2023-80), CC-BY-4.0, modified 2026-02-22

---

Page: https://cve.day/CVE-2023-32675 · Whole record: https://cve.day/CVE-2023-32675.json · Rebuilt by cve.day 2026-11-25T22:58:24.282Z
