Vyper before 0.2.6 Call Stack Corruption via Complex Type Function Arguments
Impact
Vyper before 0.2.6 has a call stack corruption vulnerability when passing complex types as function arguments, causing incorrect outputs. This affects contracts using multi-dimensional arrays or structs. The weakness is due to an incorrect calculation of buffer size.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
vyperlang · VulnCheck
vyper
2 ranges
vyperlang · VulnCheck
vyper
Package identity
pkg:pypi/vyperExplore vyper →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
0 → before 0.2.6
python versions
unaffected
0.2.6
python versions
Other versions: unaffected
Original source description
Vyper before 0.2.6 contains a call stack corruption vulnerability that causes incorrect function outputs when complex types with non-base members are passed as arguments. Contracts passing multi-dimensional arrays or structs to internal or external functions receive corrupted values because the compiler assumed each subtype size is 32.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2020-37287View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Environment requirements
These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.
VulnCheck · platform conditions
Any condition may hold
Vulnerable product
cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*Before: 0.2.6
Original applicability statements
[
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*",
"versionEndExcluding": "0.2.6"
}
]
}
]
}
]Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.