SecurityContext

CVE-2023-39363: Vyper - Race Condition

  • Cve: CVE-2023-39363
  • Name: Vyper - Race Condition
  • 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.
  • Impact: Attackers can perform cross-function re-entrancy attacks, potentially leading to unauthorized fund access or contract state manipulation.
  • Remediation: Update to version 0.3.1 or later, which contains a fix for this issue.
  • Vulnerability type: race_condition
  • Vulnerability impact: privilege_escalation, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.9
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00821
  • Epss percentile: 0.58053
  • Assignee: [email protected]
  • Published at: 2023-08-07T19:15:11Z
  • Age in days: 1205
  • Modified at: 2026-06-17T06:12:08Z
  • Patch available: yes
  • Public exploits total: 3
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-39363
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-863Incorrect Authorization

Public exploits

Same in every row:

  • Source: nvd
  • Added date: 2023-08-07
Url
https://github.com/vyperlang/vyper/security/advisories/GHSA-5824-cm3x-3c38
https://hackmd.io/@LlamaRisk/BJzSKHNjn
https://hackmd.io/@vyperlang/HJUgNMhs2

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/vyperlang/vyper/pull/2439Patch
https://github.com/vyperlang/vyper/pull/2514Patch
https://github.com/vyperlang/vyper/security/advisories/GHSA-5824-cm3x-3c38Exploit, Patch, Third Party Advisory
https://hackmd.io/@LlamaRisk/BJzSKHNjnExploit, Third Party Advisory
https://hackmd.io/@vyperlang/HJUgNMhs2Exploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
vyperlang:vyper= 0.3.0, = 0.2.16, = 0.2.15nonvd/v1/products/vyperlang/vyper

Projects

RepositoryLink kindsIndexedUrl
vyperlang/vyperfix, package, pull, security_advisoryyes/v1/repositories/vyperlang/vyper

Index

  • Repositories: 6
  • Repositories high signal: 4
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2023-08-07
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts