Advisory

GHSA-4v7v-gqf9-ww2g

Also known as: CVE-2020-37287

Summary

Vyper: Call stack corruption when passing complex type containing non-base type members as argument

Details

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:

@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`.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-06 15:22 UTC
Modified
2026-10-24 02:56 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0, fixed 0.2.6 (ecosystem)

Fixed versions

0.2.6

Fix

  • Fixed version 0.2.6
    pip install --upgrade vyper==0.2.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences