Vyper: Call stack corruption when passing complex type containing non-base type members as argument
Description
A vulnerability in Vyper prior to version 0.2.6 causes call stack corruption when passing multi-dimensional arrays as arguments to internal or external functions. This occurs due to incorrect assumptions about the size of array or struct subtypes during stack management, leading to incorrect output.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from a stack management issue in Vyper where the size of each subtype of an array or struct was assumed to be 32 bytes, which is not always accurate. When multi-dimensional arrays (e.g., int128[2][1]) are passed as arguments to internal or external functions, this incorrect assumption leads to call stack corruption and incorrect function output. The issue was fixed in pull request #2184 and included in Vyper version 0.2.6.
Potential Impact
Functions that accept multi-dimensional arrays as arguments may produce incorrect outputs due to call stack corruption. This could affect the correctness of smart contract logic relying on such function calls.
Mitigation Recommendations
Upgrade to Vyper version 0.2.6 or later, where the issue has been fixed. No other mitigation is required as the patch fully addresses the vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4v7v-gqf9-ww2g
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6ac523782cdf04f656c4bf5b
Added to database: 10/06/2026, 16:36:08 UTC
Last enriched: 10/06/2026, 16:48:53 UTC
Last updated: 10/06/2026, 16:48:53 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.