Skip to main content
← All vulnerabilities
CVE-2023-41052PYSEC-2023-168GHSA-4HG4-9MF5-WXXQ

Vyper: incorrect order of evaluation of side effects for some builtins

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

Summary

Vyper is a Pythonic Smart Contract Language. In affected versions the order of evaluation of the arguments of the builtin functions `uint256_addmod`, `uint256_mulmod`, `ecadd` and `ecmul` does not follow source order. This behaviour is problematic when the evaluation of one of the arguments produces side effects that other arguments depend on. A patch is currently being developed on pull request #3583. When using builtins from the list above, users should make sure that the arguments of the expression do not produce side effects or, if one does, that no other argument is dependent on those side effects.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • vyperlang vyper

    through 0.3.9

  • vyperPyPI

    fixed in 0.3.10rc1

  • vyperPyPI

    fixed in 0.3.10

References 2

GitHub · vyperlang/vyper