{"id":"CVE-2023-32675","published":"2023-05-19T19:46:18Z","modified":"2025-02-12T16:36:34Z","title":"Nonpayable default functions are sometimes payable in vyper","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00553,"percentile":0.47101,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":9.42},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["< 0.3.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-21T17:07:30.282818Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.3.8"],"patched":["0.3.8"],"from":["GHSA-vxmm-cwh2-q762","PYSEC-2023-80"],"provenance":"source"}],"summary":{"text":"The flaw is in the Vyper smart contract language compiler, where contracts with more than one regular nonpayable function can accept ether sent to the default function even though it is marked nonpayable. An attacker with network access can send funds to such a contract without any authentication or user interaction, provided the contract was compiled with a Vyper version prior to 0.3.8.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:33Z"},"euvd":{"id":"EUVD-2023-0273","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vyperlang-vyper-cve-2022-24788","parents":[{"from":"CVE-2022-24788","to":"CVE-2023-32675","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vyper/codegen/function_definitions/external_function.py"],"commits":["https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b","https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520","https://github.com/vyperlang/vyper/commit/903727006c1e5ebef99fa9fd5d51d62bd33d72a9"],"basis":"rarely changed file"}]},{"from":"CVE-2022-24845","to":"CVE-2023-32675","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vyper/codegen/function_definitions/external_function.py"],"commits":["https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b","https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520","https://github.com/vyperlang/vyper/commit/903727006c1e5ebef99fa9fd5d51d62bd33d72a9"],"basis":"rarely changed file"}]}]}}