CVE-2023-39363
Vyper incorrectly allocated named re-entrancy locks
Also known as GHSA-5824-cm3x-3c38, PYSEC-2023-142
Mitigation
- Upgrade vyper to 0.3.1 or later.
Who should check
- Projects that depend on PyPI package vyper (>= 0.2.15, < 0.3.1)
- Anyone running vyperlang vyper = 0.2.15; = 0.2.16; = 0.3.0
Vulnerability facts
- Affected
- vyper >= 0.2.15, < 0.3.1
- Fixed in
- 0.3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H/E:AOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: High
- Availability impact on other systems: High
- Exploit maturity: Attacked
- EPSS
- 0.91% chance of exploitation in 30 days (percentile 58, 2026-11-26)
- CWE
- CWE-863
- Modified
Description
Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine (EVM). In versions 0.2.15, 0.2.16 and 0.3.0, named re-entrancy locks are allocated incorrectly. Each function using a named re-entrancy lock gets a unique lock regardless of the key, allowing cross-function re-entrancy in contracts compiled with the susceptible versions. A specific set of conditions is required to result in misbehavior of affected contracts, specifically: a `.vy` contract compiled with `vyper` versions `0.2.15`, `0.2.16`, or `0.3.0`; a primary function that utilizes the `@nonreentrant` decorator with a specific `key` and does not strictly follow the check-effects-interaction pattern (i.e. contains an external call to an untrusted party before storage updates); and a secondary function that utilizes the same `key` and would be affected by the improper state caused by the primary function. Version 0.3.1 contains a fix for this issue.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-39363. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-39363.md Affected: vyper >= 0.2.15, < 0.3.1 Fixed in: 0.3.1 Steps: 1. Search this machine and project for vyper (PyPI), vyperlang vyper: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-39363 being exploited?
There is no confirmed exploitation: CVE-2023-39363 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.91% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-39363?
Critical: CVSS 9.1 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-39363?
vyper >= 0.2.15, < 0.3.1.
Is there a fix for CVE-2023-39363?
Yes. Fixed in 0.3.1. Upgrade vyper to 0.3.1 or later.
How do I check if I'm affected by CVE-2023-39363?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.