CWE
190
Advisory Published
Updated

CVE-2022-24845: Integer bounds error in Vyper

First published: Wed Apr 13 2022(Updated: )

Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In affected versions, the return of `<iface>.returns_int128()` is not validated to fall within the bounds of `int128`. This issue can result in a misinterpretation of the integer value and lead to incorrect behavior. As of v0.3.0, `<iface>.returns_int128()` is validated in simple expressions, but not complex expressions. Users are advised to upgrade. There is no known workaround for this issue.

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

Affected SoftwareAffected VersionHow to fix
Vyperlang Vyper<0.3.2

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-2022-24845?

    CVE-2022-24845 is a vulnerability in the Vyper smart contract language for the Ethereum virtual machine.

  • What is the severity of CVE-2022-24845?

    CVE-2022-24845 has a severity rating of 9.8 (critical).

  • How does CVE-2022-24845 affect Vyper?

    CVE-2022-24845 affects versions up to and excluding 0.3.2 of Vyper.

  • What is the impact of CVE-2022-24845?

    CVE-2022-24845 can lead to a misinterpretation of integer values and cause incorrect behavior in Vyper.

  • How can CVE-2022-24845 be fixed?

    The issue has been fixed in the commit 049dbdc647b2ce838fae7c188e6bb09cf16e470b in the Vyper repository.

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