GHSA-4v7v-gqf9-ww2g: Pip/vyper vulnerability

Published Oct 6, 2026
·
Updated

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 testinput(arr: int128[2][1], i: int128) -> (int128[2][1], int128): return arr, i

@external def testvalues(arr: int128[2][1], i: int128) -> (int128[2][1], int128): return self.testinput(arr, i)

Please see #2183 for further information

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

Affected Software

1 affected componentFixes available
pip/vyper<0.2.6
0.2.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/vyper to a version that resolves this vulnerability.

    Fixed in 0.2.6
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in v0.2.6Patch #2184

Event History

Oct 6, 2026
Advisory Published
via GitHub·03:22 PM
Data Sourced
via GitHub·03:22 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which Vyper code paths are affected?

The issue affects internal or external function calls that receive multi-dimensional arrays, such as int128[2][1]. The compiler can produce incorrect output because it incorrectly assumes every array or struct subtype occupies 32 bytes.

2

What version contains the fix?

The fix was released in Vyper v0.2.6 as part of pull request #2184.

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