CVE-2023-39363

Public Exploit
Vyper incorrectly allocated named re-entrancy locks

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.

Category

9.1
CVSS
Severity: Critical
CVSS 4.0 •
CVSS 3.1 •
EPSS 0.07%
Third-Party Advisory github.com Third-Party Advisory hackmd.io Third-Party Advisory hackmd.io
Affected: vyperlang vyper
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-39363?
CVE-2023-39363 has been scored as a critical severity vulnerability.
How to fix CVE-2023-39363?
To fix CVE-2023-39363, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-39363 being actively exploited in the wild?
It is possible that CVE-2023-39363 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-39363?
CVE-2023-39363 affects vyperlang vyper.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.