CVE-2021-41121: Memory corruption in Vyper

Published Oct 6, 2021
·
Updated

Impact

When performing a function call inside a literal struct, there is a memory corruption issue that occurs because of an incorrect pointer to the the top of the stack.

Patches 0.3.0 / #2447

Other sources

Vyper is a Pythonic Smart Contract Language for the EVM. In affected versions when performing a function call inside a literal struct, there is a memory corruption issue that occurs because of an incorrect pointer to the the top of the stack. This issue has been resolved in version 0.3.0.

Affected Software

2 affected componentsFixes available
pip/vyper<0.3.0
0.3.0
vyperlang vyper<0.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/vyper to a version that resolves this vulnerability.

    Fixed in 0.3.0
  2. Upgrade

    Upgrade Vyper to a version that resolves this vulnerability.

    Fixed in 0.3.0Patch #2447

Event History

Oct 6, 2021
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 12, 2021
Advisory Published
via GitHub·03:59 PM

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID is CVE-2021-41121.

2

What is Vyper?

Vyper is a Pythonic Smart Contract Language for the EVM.

3

What is the impact of this vulnerability?

The impact of this vulnerability is a memory corruption issue.

4

What is the affected software?

The affected software is Vyperlang Vyper up to version 0.3.0.

5

How can I fix this vulnerability?

To fix this vulnerability, upgrade to version 0.3.0 of Vyperlang Vyper.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203