Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays
Impact
Vyper before 0.3.0 has a memory corruption vulnerability due to incorrect stack tip pointer handling in internal function calls within arrays. This can cause incorrect contract behavior. Affected versions range from 0.1.0b4 to before 0.3.0.
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.1.0b4 → before 0.3.0
python versions
unaffected
0.3.0
python versions
Other versions: unaffected
Original source description
Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2021-48020View 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:*:*:*:*:*:*:*:*From (inclusive): 0.1.0b4
Before: 0.3.0
Original applicability statements
[
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*",
"versionStartIncluding": "0.1.0b4",
"versionEndExcluding": "0.3.0"
}
]
}
]
}
]Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.