CWE
119 120
Advisory Published
Advisory Published
Updated

CVE-2022-24788: Buffer overflow in Vyper

First published: Wed Apr 13 2022(Updated: )

### Impact Importing a function from a JSON interface which returns `bytes` generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun. ### Patches 0.3.2 (as of https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b) ### Workarounds Use .vy interfaces.

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

Affected SoftwareAffected VersionHow to fix
Vyperlang Vyper<0.3.2
pip/vyper<0.3.2
0.3.2
<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-24788?

    CVE-2022-24788 is a vulnerability in the Vyper smart contract language for the Ethereum Virtual Machine (EVM).

  • How does CVE-2022-24788 impact Vyper?

    CVE-2022-24788 can potentially result in a buffer overrun when importing a function from a JSON interface in Vyper versions prior to 0.3.2.

  • What can happen if CVE-2022-24788 is exploited?

    Exploiting CVE-2022-24788 could allow an attacker to perform arbitrary code execution or cause a denial-of-service (DoS) condition.

  • How can I fix CVE-2022-24788?

    To fix CVE-2022-24788, update Vyper to version 0.3.2 or later.

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

    CVE-2022-24788 has a severity rating of 9.8, which is classified as critical.

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