What’s Vulnerable › Vulnerabilities

CVE-2020-37287: Vyper before 0.2.6 Call Stack Corruption via Complex Type Function Arguments

Description

Vyper before 0.2.6 contains a call stack corruption vulnerability that causes incorrect function outputs when complex types with non-base members are passed as arguments. Contracts passing multi-dimensional arrays or structs to internal or external functions receive corrupted values because the compiler assumed each subtype size is 32.

Affected products

How to fix

Upgrade to a fixed version: Pypi Vyper 0.2.6; vyperlang vyper 0.2.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2020-37287 or the next vulnerability affects your stack