CVE-2023-41052CWE-670

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

Low · published September 4, 2023

CVSS v3.1
3.7
EPSS
1%
Percentile
44.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.7 · LOW
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00536 · 44.4th percentile
Weakness
CWE-670 · Always-Incorrect Control Flow Implementation
Published
2023-09-04T17:36Z
EPSS history
Timeline
  • 04 SEP 17:36Z
    Vyper: incorrect order of evaluation of side effects for some builtins
    cvelistv5