CVE-2023-39363
Vyper Ethereum Virtual Machine Re-Entrancy Lock Issue
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.
INFO
Published Date :
Aug. 7, 2023, 7:15 p.m.
Last Modified :
Oct. 11, 2024, 2:15 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
2.2
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-39363
.
URL | Resource |
---|---|
https://github.com/vyperlang/vyper/pull/2439 | Patch |
https://github.com/vyperlang/vyper/pull/2514 | Patch |
https://github.com/vyperlang/vyper/security/advisories/GHSA-5824-cm3x-3c38 | Exploit Patch Third Party Advisory |
https://hackmd.io/@LlamaRisk/BJzSKHNjn | Exploit Third Party Advisory |
https://hackmd.io/@vyperlang/HJUgNMhs2 | Exploit Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-39363
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-39363
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Oct. 11, 2024
Action Type Old Value New Value Removed CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N Added CVSS V4.0 GitHub, Inc. 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:A/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Sep. 18, 2023
Action Type Old Value New Value Changed Description Vyer 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. 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. -
Initial Analysis by [email protected]
Aug. 11, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N Changed Reference Type https://github.com/vyperlang/vyper/pull/2439 No Types Assigned https://github.com/vyperlang/vyper/pull/2439 Patch Changed Reference Type https://github.com/vyperlang/vyper/pull/2514 No Types Assigned https://github.com/vyperlang/vyper/pull/2514 Patch Changed Reference Type https://github.com/vyperlang/vyper/security/advisories/GHSA-5824-cm3x-3c38 No Types Assigned https://github.com/vyperlang/vyper/security/advisories/GHSA-5824-cm3x-3c38 Exploit, Patch, Third Party Advisory Changed Reference Type https://hackmd.io/@LlamaRisk/BJzSKHNjn No Types Assigned https://hackmd.io/@LlamaRisk/BJzSKHNjn Exploit, Third Party Advisory Changed Reference Type https://hackmd.io/@vyperlang/HJUgNMhs2 No Types Assigned https://hackmd.io/@vyperlang/HJUgNMhs2 Exploit, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:vyperlang:vyper:0.2.15:*:*:*:*:python:*:* *cpe:2.3:a:vyperlang:vyper:0.2.16:*:*:*:*:python:*:* *cpe:2.3:a:vyperlang:vyper:0.3.0:*:*:*:*:python:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-39363
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-39363
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.12 }} 0.01%
score
0.46693
percentile