GHSA-7f92-rr6w-cq64: Vyper Storage Corruption Due To Variables Vulnerability
HIGHGHSA-7f92-rr6w-cq64 is a HIGH storage corruption due to variables vulnerability (General Security Weakness) affecting Vyper libraries in the PyPI ecosystem. The issue involves storage corruption due to variables overwritten by re-entrancy locks. Remediation is available by upgrading affected packages to version 0.2.15.
GHSA-7f92-rr6w-cq64 at a Glance
How to Fix GHSA-7f92-rr6w-cq64
To remediate this vulnerability, upgrade all affected Vyper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install vyper>=0.2.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show vyper
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-7f92-rr6w-cq64, inspect your installed packages using pip:
pip show vyper
Analyze the terminal output to locate any version of Vyper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.15), your application is affected.
Note: The pip show vyper command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Vyper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-7f92-rr6w-cq64 Affected Vyper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
vyper
|
PyPI |
≥ 0.2.13
< 0.2.15
|
0.2.15
|
References
Frequently Asked Questions
What is GHSA-7f92-rr6w-cq64?
Which Vyper versions are affected?
What version fixes GHSA-7f92-rr6w-cq64?
Is vyper affected?
What CWE is associated with GHSA-7f92-rr6w-cq64?
How can I check PyPI dependencies for GHSA-7f92-rr6w-cq64?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7f92-rr6w-cq64",
"modified" : "2021-08-02T19:12:30Z",
"published" : "2021-08-05T16:57:42Z",
"aliases" : [ ],
"summary" : "Storage corruption due to variables overwritten by re-entrancy locks",
"details" : "### Background\nWhen attempting to use the v0.2.14 release, @pandadefi discovered an issue using the `@nonreentrant` decorator.\n\n### Impact\nReentrancy protection storage slots get allocated to the same slots as storage variables, leading to the corruption of storage variables when using the `@nonreentrant` decorator.\n\n### Patches\nThis issue was fixed in v0.2.15 in #2391, #2379\n\n### Workarounds\nDon't use the `@nonreentrant` decorator in these versions.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "vyper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.2.13"
}, {
"fixed" : "0.2.15"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64"
}, {
"type" : "WEB",
"url" : "https://github.com/vyperlang/vyper/pull/2379"
}, {
"type" : "WEB",
"url" : "https://github.com/vyperlang/vyper/pull/2391"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-02T19:12:30Z",
"nvd_published_at" : null
}
}