PT-2026-115980 · Pypi · Vyper

Published

2026-10-06

·

Updated

2026-10-06

CVSS v4.0

6.9

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Impact

When we pass a multi-dimensional array (like [[1, 2], [3, 4]]) as an argument to internal/external functions we get incorrect output. This is due to a stack management issue, because it was assumed that the size of each subtype of an array/struct is 32, which is not always correct.
Example code:
python
@internal
def test input(arr: int128[2][1], i: int128) -> (int128[2][1], int128):
  return arr, i

@external
def test values(arr: int128[2][1], i: int128) -> (int128[2][1], int128):
  return self.test input(arr, i)
Please see #2183 for further information

Patches

This problem was fixed in #2184, and released as a part of v0.2.6.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

GHSA-4V7V-GQF9-WW2G

Affected Products

Vyper