CWE
682
Advisory Published
Advisory Published
Updated

CVE-2021-41122: Bounds check missing for decimal args in Vyper

First published: Tue Oct 05 2021(Updated: )

### Impact The following code does not properly validate that its input is in bounds. ```python @external def foo(x: decimal) -> decimal: return x ``` ### Patches 0.3.0 / #2447 ### Workarounds Don't use decimal args

Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Vyperlang Vyper<0.3.0
pip/vyper<0.3.0
0.3.0
<0.3.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-41122?

    CVE-2021-41122 is a vulnerability in Vyper, a Pythonic Smart Contract Language for the EVM.

  • What is the severity of CVE-2021-41122?

    CVE-2021-41122 has a severity rating of 4.3 (medium).

  • How does CVE-2021-41122 affect Vyper users?

    CVE-2021-41122 affects Vyper users who are using versions up to 0.2.10.

  • How can I fix CVE-2021-41122?

    To fix CVE-2021-41122, users should upgrade to Vyper version 0.3.0 or later.

  • Where can I find more information about CVE-2021-41122?

    More information about CVE-2021-41122 can be found in the Vyper GitHub repository and the associated security advisory.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203