Skip to main content

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

0
Medium
Published: 10/06/2026 (10/06/2026, 15:22:23 UTC)
Source: GCVE Database
Product: vyper

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

PyPIghsa
vyper
Affected versions
<0.2.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/06/2026, 16:48:53 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses