CVE Catalog

CVE-2021-48020

MediumCVSS 6.5
Published: Translated: NVD NIST

Summary

Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.

Risk Assessment

Smart contracts may behave unpredictably, including incorrect computations or loss of funds, posing a risk to transaction security.

Recommendation

Update the Vyper compiler to version 0.3.0 or later and recompile affected contracts.

Other vulnerabilities in Vyper

See all
Original NVD description (English source)

Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS