CVE-2023-42441
MEDIUM 5.3CVSS 3.1Vyper has incorrect re-entrancy lock when key is empty string
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.
- Published
- 18 Sep 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-667CWE-833
- Also known as
- GHSA-3hg2-r75x-g69mPYSEC-2023-305
- Sources
- NVDJSONOSV GHSA-3hg2-r75x-g69mJSONOSV PYSEC-2023-305JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:* |
>= 0.2.9, < 0.3.10 | 0.3.10 |
| OSV | PyPI | vyper | >= 0.2.9, < 0.3.10 | 0.3.10 |
References
- https://github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83 · Patch, WEB, FIX
- https://github.com/vyperlang/vyper/pull/3605 · Issue Tracking, Patch, WEB, FIX
- https://github.com/vyperlang/vyper/security/advisories/GHSA-3hg2-r75x-g69m · Exploit, Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-42441 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-305.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 18 Sep 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Sep 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Sep 2023)