Vyper memory corruption in nested function calls and tuples

Severity: medium · Published 2026-10-06

Vyper is a programming language for writing smart contracts on Ethereum. When code contains nested function calls or function calls within tuples, a memory corruption bug can cause incorrect data to be written to or read from memory, potentially leading to contract logic failures or data integrity issues. Developers using vulnerable versions may deploy contracts with unpredictable behavior that could be exploited.

Technologies: vyper (PyPI), Vyper. Vendors: PyPI, Vyper.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Medium severity, published 6 October 2026.
Which products and versions are affected?
vyper (PyPI) < 0.2.6; Vyper < 0.2.6.
Is there a fix for This vulnerability?
Yes: fixed in 0.2.6. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run vyper (PyPI) or Vyper at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 0.2.6

Technical details

The vulnerability is a memory corruption issue in the Vyper compiler that occurs when processing function calls inside tuples or as arguments to other function calls. The bug stems from an incorrect stack pointer calculation, causing the compiler to reference the wrong memory location. This is a compile-time issue affecting generated bytecode; any contract compiled with the vulnerable version contains the defect and is affected upon execution of the vulnerable code pattern.

Affected products

  • Vyper Vyper < 0.2.6

Timeline

  • 2020-10-10: disclosed
  • 2020-10-10: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.