Vulnerability · Published May 19, 2023 · Assigned by GitHub_M

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

Low 3.7

In plain English

A low-severity security flaw in vyper from vyperlang. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.6%top 53.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIvyper0.3.8GHSA-vxmm-cwh2-q762
PyPIvyper0.3.8PYSEC-2023-80

Affected products (as reported)

VendorProductVersions
vyperlang vyper < 0.3.8

Weakness: CWE-670 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

References