PT-2023-27764 · Vyper · Vyper
Charles-Cooper
+1
·
Published
2023-09-04
·
Updated
2023-09-08
·
CVE-2023-41052
CVSS v4.0
6.9
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Vyper (affected versions not specified)
Description
The order of evaluation of the arguments of the builtin functions
uint256 addmod, uint256 mulmod, ecadd, and ecmul does not follow source order. This behavior is problematic when the evaluation of one of the arguments produces side effects that other arguments depend on. For uint256 addmod(a,b,c) and uint256 mulmod(a,b,c), the order is c,a,b. For ecadd(a,b) and ecmul(a,b), the order is b,a.Recommendations
As a temporary workaround, consider ensuring 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 when using builtins from the list above.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Vyper