{"id":"CVE-2024-32648","published":"2024-04-25T17:48:32Z","modified":"2024-08-02T02:13:40Z","title":"vyper default functions don't respect nonreentrancy keys","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. Prior to version 0.3.0, default functions don't respect nonreentrancy keys and the lock isn't emitted. No vulnerable production contracts were found. Additionally, using a lock on a `default` function is a very sparsely used pattern. As such, the impact is low. Version 0.3.0 contains a patch for the issue.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00415,"percentile":0.36733,"provenance":"source"},"cwes":[{"id":"CWE-667","name":"Improper Locking"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-m2v9-w374-5hj9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vyperlang/vyper/issues/2455","tags":["x_refsource_MISC"]},{"url":"https://github.com/vyperlang/vyper/commit/93287e5ac184b53b395c907d40701f721daf8177","tags":["x_refsource_MISC"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":7.35},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["< 0.3.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-04-25T19:30:39.358759Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.3.0"],"patched":["0.3.0"],"from":["GHSA-m2v9-w374-5hj9","PYSEC-2024-163"],"provenance":"source"}],"summary":{"text":"The Vyper smart contract language (vyperlang, product vyper) fails to enforce nonreentrancy locks on its default functions in versions before 0.3.0, so the lock is not emitted for those functions. An attacker who can call a contract's default function over the network, with no authentication or user interaction required, could re-enter the function while a lock was expected to block it, though the advisory notes that the pattern of putting a lock on a default function is rarely used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:17Z"},"euvd":{"id":"EUVD-2024-0179","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vyperlang-vyper-cve-2023-42441","parents":[{"from":"CVE-2023-42441","to":"CVE-2024-32648","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vyper/semantics/namespace.py","vyper/semantics/types/function.py"],"commits":["https://github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83","https://github.com/vyperlang/vyper/commit/93287e5ac184b53b395c907d40701f721daf8177"],"basis":"shared function","functions":["from_FunctionDef"]}]}]}}