{"id":"CVE-2023-42441","published":"2023-09-18T20:19:26Z","modified":"2024-09-24T18:58:08Z","title":"Vyper has incorrect re-entrancy lock when key is empty string","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine (EVM). Starting in version 0.2.9 and prior to version 0.3.10, locks of the type `@nonreentrant(\"\")` or `@nonreentrant('')` do not produce reentrancy checks at runtime. This issue is fixed in version 0.3.10. As a workaround, ensure the lock name is a non-empty string.","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.00514,"percentile":0.44685,"provenance":"source"},"cwes":[{"id":"CWE-833","name":"Deadlock"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-3hg2-r75x-g69m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vyperlang/vyper/pull/3605","tags":["x_refsource_MISC"]},{"url":"https://github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.94},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":[">= 0.2.9, < 0.3.10"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-24T18:49:53.145026Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":[">=0.2.9, <0.3.10"],"patched":["0.3.10"],"from":["GHSA-3hg2-r75x-g69m","PYSEC-2023-305"],"provenance":"source"}],"summary":{"text":"The Vyper smart contract language, versions 0.2.9 up to but not including 0.3.10, has a re-entrancy lock flaw: locks declared with an empty string name, such as @nonreentrant(\"\"), produce no runtime re-entrancy checks. An attacker who can reach a contract compiled with such a lock over the network, without authentication or user interaction, can re-enter the protected function, with the impact limited to integrity loss, and this can be avoided by using a non-empty lock name.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:52Z"},"euvd":{"id":"EUVD-2023-0274","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vyperlang-vyper-cve-2023-42441","children":[{"from":"CVE-2023-42441","to":"CVE-2024-32481","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vyper/exceptions.py"],"commits":["https://github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83","https://github.com/vyperlang/vyper/commit/3de1415ee77a9244eb04bdb695e249d3ec9ed868","https://github.com/vyperlang/vyper/commit/5319cfbe14951e007ccdb323257e5ada869b35d5"],"basis":"shared function","functions":["__init__"]}]},{"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"]}]}]}}