Read the docs
TI-2026-68470 Aliases GHSA-2r3x-4mrv-mcxf

Vyper: Memory corruption using function calls within tuples / nested calls

Priority LOW 38CWE-129Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

Vyper versions from 0 before 0.2.6 (PyPI package vyper) can corrupt memory when a function call sits inside a tuple or as an argument of another function call. The compiler uses an incorrect pointer to the top of the stack, which causes the corruption and is tracked as CWE-129.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the GitHub advisory

### Impact When performing a function call inside a tuple or as an argument inside another function call, there is a memory corruption issue that occurs because of an incorrect pointer to the the tip of the stack. Example code: ```python @internal def _foo(a: uint256, b: uint256, c: uint256) -> (uint256, uint256, uint256, uint256, uint256): return 1, a, b, c, 5 @internal def _foo2() -> uint256: a: uint256[10] = [6,7,8,9,10,11,12,13,15,16] return 4 @external def foo() -> (uint256, uint256, uint256, uint256, uint256): return self._foo(2, 3, self._foo2()) ``` Please see #2186 for further information ### Patches This problem was fixed in #2186, and released as a part of [`v0.2.6`](https://github.com/vyperlang/vyper/releases/tag/v0.2.6).

Why it matters now

Fix Fixed vyper (PyPI): 0.2.6

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—vyper (PyPI)before 0.2.60.2.6Patch availableGHSA-2r3x-4mrv-mcxf
  • vyper (PyPI) Vendor— Affected before 0.2.6 Fixed in 0.2.6 Patch available GHSA-2r3x-4mrv-mcxf

Remediation

Upgrade vyper to version 0.2.6, which contains the fix from pull request #2186.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

  • Fix · GHSA-2r3x-4mrv-mcxf vyper (PyPI) Fixed in 0.2.6 Advisory →

Timeline

  1. 2026-10-06 Threatist record created from GHSA-2r3x-4mrv-mcxf

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences