Skip to main content
← All vulnerabilities
CVE-2023-32675GHSA-VXMM-CWH2-Q762PYSEC-2023-80

Nonpayable default functions are sometimes payable in vyper

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • vyperlang vyper

    fixed in 0.3.8

  • vyperPyPI

    fixed in 0.3.8

References 2

GitHub · vyperlang/vyper