Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vyper
  4. ›
  5. CVE-2023-42441

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

September 18, 2023 (updated November 22, 2024)

Locks of the type @nonreentrant("") or @nonreentrant('') do not produce reentrancy checks at runtime.

@nonreentrant("") # unprotected
@external
def bar():
pass

@nonreentrant("lock") # protected
@external
def foo():
pass

References

  • github.com/advisories/GHSA-3hg2-r75x-g69m
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-305.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/commit/0b740280c1e3c5528a20d47b29831948ddcc6d83
  • github.com/vyperlang/vyper/pull/3605
  • github.com/vyperlang/vyper/security/advisories/GHSA-3hg2-r75x-g69m
  • nvd.nist.gov/vuln/detail/CVE-2023-42441

Code Behaviors & Features

Detect and mitigate CVE-2023-42441 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.2.9 before 0.3.10

Fixed versions

  • 0.3.10

Solution

Upgrade to version 0.3.10 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-667: Improper Locking
  • CWE-833: Deadlock

Source file

pypi/vyper/CVE-2023-42441.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:40 +0000.