CVE-2022-24788: Buffer overflow in Vyper

Published 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.

Other sources

Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. Versions of vyper prior to 0.3.2 suffer from a potential buffer overrun. Importing a function from a JSON interface which returns bytes generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun. Users are advised to upgrade. There are no known workarounds for this issue.

Affected Software

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

Event History

Apr 13, 2022
CVE Published
via MITRE·06:30 PM
Data Sourced
via MITRE·06:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 20, 2022
Advisory Published
via GitHub·08:31 PM

Frequently Asked Questions

1

What is CVE-2022-24788?

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

2

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.

3

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.

4

How can I fix CVE-2022-24788?

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

5

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