Skip to main content
← All vulnerabilities
CVE-2023-37902PYSEC-2023-133GHSA-F5X6-7QGP-JHF3

Vyper's ecrecover can return undefined data if signature does not verify

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.10, 0.3.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Vyper is a Pythonic programming language that targets the Ethereum Virtual Machine (EVM). Prior to version 0.3.10, the ecrecover precompile does not fill the output buffer if the signature does not verify. However, the ecrecover builtin will still return whatever is at memory location 0. This means that the if the compiler has been convinced to write to the 0 memory location with specially crafted data (generally, this can happen with a hashmap access or immutable read) just before the ecrecover, a signature check might pass on an invalid signature. Version 0.3.10 contains a patch for this issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • vyperlang vyper

    fixed in 0.3.10

  • vyperPyPI

    fixed in 0.3.9

  • vyperPyPI

    fixed in 0.3.10

References 2

GitHub · vyperlang/vyper