{"id":"CVE-2023-42441","aliases":["CVE-2023-42441","GHSA-3hg2-r75x-g69m","PYSEC-2023-305"],"related":[],"kind":"vulnerability","state":"published","title":"Vyper has incorrect re-entrancy lock when key is empty string","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nLocks of the type `@nonreentrant(\"\")` or `@nonreentrant('')` do not produce reentrancy checks at runtime.\n\n```Vyper\n@nonreentrant(\"\") # unprotected\n@external\ndef bar():\n    pass\n\n@nonreentrant(\"lock\") # protected\n@external\ndef foo():\n    pass\n```\n### Patches\n\nPatched in #3605\n\n### Workarounds\n\nThe lock name should be a non-empty string.\n\n### References\n_Are there any links users can visit to find out more?_","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vyper es un Lenguaje de Contrato Inteligente de Python para la Máquina Virtual Ethereum (EVM). A partir de la versión 0.2.9 y anteriores a la versión 0.3.10, los bloqueos del tipo '@nonreentrant(\"\")' o '@nonreentrant('')' no producen comprobaciones de reentrada en tiempo de ejecución. Este problema se corrigió en la versión 0.3.10. Como workaround, asegúrese de que el nombre del bloqueo sea una cadena no vacía.","source":"nvd"}],"published":"2023-09-18T19:20:55.000Z","modified":"2026-09-10T03:50:03.191Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-667","CWE-833"],"affected":[{"ranges":[{"version":">= 0.2.9, < 0.3.10","status":"affected"}],"vendor":"vyperlang","product":"vyper","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.2.9","fixed":"0.3.10","status":"affected"}],"vendor":"vyperlang","product":"vyper","cpe":"cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.2.9","status":"affected","fixed":"0.3.10"}],"ecosystem":"PyPI","package":"vyper","purl":"pkg:pypi/vyper","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.2.9","fixed":"0.3.10"}],"vendor":"vyperlang","product":"vyper","cpe":"cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"0b740280c1e3c5528a20d47b29831948ddcc6d83"},{"type":"ecosystem","introduced":"0.2.9","status":"affected","fixed":"0.3.10"}],"ecosystem":"PyPI","package":"vyper","purl":"pkg:pypi/vyper","repo":"https://github.com/vyperlang/vyper","source":"pysec"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-3hg2-r75x-g69m","tags":["advisory","exploit","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/vyperlang/vyper/pull/3605","tags":["fix","issue-tracking","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42441","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-305.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-09-24T18:49:53.145Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-42441","url":"https://www.cve.org/CVERecord?id=CVE-2023-42441","licence":"CVE Terms of Use","modified":"2024-09-24T18:58:08.589Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3hg2-r75x-g69m","url":"https://github.com/advisories/GHSA-3hg2-r75x-g69m","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:03.191Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-42441","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42441","licence":"Public domain","modified":"2026-06-17T06:23:50.140Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-305","url":"https://osv.dev/vulnerability/PYSEC-2023-305","licence":"CC-BY-4.0","modified":"2024-11-21T14:57:14.248Z"}],"updatedAt":"2026-11-25T22:58:27.979Z","epss":{"score":0.00514,"percentile":0.45273,"date":"2026-12-02T12:00:21.000Z"}}