# CVE-2023-42441: Vyper has incorrect re-entrancy lock when key is empty string

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-18T19:20:55.000Z
- Modified: 2026-09-10T03:50:03.191Z
- Also known as: GHSA-3hg2-r75x-g69m, PYSEC-2023-305
- Weaknesses: CWE-667, CWE-833
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vyperlang vyper: >= 0.2.9, < 0.3.10; from 0.2.9 before 0.3.10
- vyper (PyPI): from 0.2.9 before 0.3.10; before 0b740280c1e3c5528a20d47b29831948ddcc6d83

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-3hg2-r75x-g69m> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/pull/3605> (fix, issue-tracking, patch, web)
- <https://github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2023-42441](https://www.cve.org/CVERecord?id=CVE-2023-42441), CVE Terms of Use, modified 2024-09-24
- GitHub Advisory Database: [GHSA-3hg2-r75x-g69m](https://github.com/advisories/GHSA-3hg2-r75x-g69m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-42441](https://nvd.nist.gov/vuln/detail/CVE-2023-42441), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-305](https://osv.dev/vulnerability/PYSEC-2023-305), CC-BY-4.0, modified 2024-11-21

---

Page: https://cve.day/CVE-2023-42441 · Whole record: https://cve.day/CVE-2023-42441.json · Rebuilt by cve.day 2026-11-25T22:58:27.979Z
