ghsa-4jwq-572w-4388
Vulnerability from github
Published
2024-01-30 23:55
Modified
2024-01-30 23:55
Severity ?
VLAI Severity ?
Summary
Memory over-allocation in evm crate
Details
Impact
Prior to the patch, when executing specific EVM opcodes related to memory operations that use evm_core::Memory::copy_large
, the crate can over-allocate memory when it is not needed, making it possible for an attacker to perform denial-of-service attack.
Patches
The flaw was corrected in commit 19ade85
. Users should upgrade to ==0.21.1, ==0.23.1, ==0.24.1, ==0.25.1, >=0.26.1
.
Workarounds
None. Please upgrade your evm
crate version
References
Fix commit: https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd
For more information
If you have any questions or comments about this advisory: * Open an issue in evm repo * Email Wei
{ "affected": [ { "database_specific": { "last_known_affected_version_range": "\u003c= 0.21.0" }, "package": { "ecosystem": "crates.io", "name": "evm" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.21.1" } ], "type": "ECOSYSTEM" } ] }, { "database_specific": { "last_known_affected_version_range": "\u003c= 0.21.0" }, "package": { "ecosystem": "crates.io", "name": "evm-core" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.21.1" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "crates.io", "name": "evm" }, "ranges": [ { "events": [ { "introduced": "0.22.0" }, { "fixed": "0.22.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.22.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm" }, "ranges": [ { "events": [ { "introduced": "0.23.0" }, { "fixed": "0.23.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.23.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm" }, "ranges": [ { "events": [ { "introduced": "0.24.0" }, { "fixed": "0.24.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.24.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm" }, "ranges": [ { "events": [ { "introduced": "0.25.0" }, { "fixed": "0.25.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.25.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm" }, "ranges": [ { "events": [ { "introduced": "0.26.0" }, { "fixed": "0.26.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.26.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm-core" }, "ranges": [ { "events": [ { "introduced": "0.22.0" }, { "fixed": "0.22.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.22.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm-core" }, "ranges": [ { "events": [ { "introduced": "0.23.0" }, { "fixed": "0.23.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.23.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm-core" }, "ranges": [ { "events": [ { "introduced": "0.24.0" }, { "fixed": "0.24.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.24.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm-core" }, "ranges": [ { "events": [ { "introduced": "0.25.0" }, { "fixed": "0.25.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.25.0" ] }, { "package": { "ecosystem": "crates.io", "name": "evm-core" }, "ranges": [ { "events": [ { "introduced": "0.26.0" }, { "fixed": "0.26.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "0.26.0" ] } ], "aliases": [ "CVE-2021-29511" ], "database_specific": { "cwe_ids": [ "CWE-770", "CWE-787" ], "github_reviewed": true, "github_reviewed_at": "2024-01-30T23:55:38Z", "nvd_published_at": "2021-05-12T18:15:00Z", "severity": "MODERATE" }, "details": "### Impact\nPrior to the patch, when executing specific EVM opcodes related to memory operations that use `evm_core::Memory::copy_large`, the crate can over-allocate memory when it is not needed, making it possible for an attacker to perform denial-of-service attack.\n\n### Patches\nThe flaw was corrected in commit `19ade85`. Users should upgrade to `==0.21.1, ==0.23.1, ==0.24.1, ==0.25.1, \u003e=0.26.1`.\n\n### Workarounds\nNone. Please upgrade your `evm` crate version\n\n### References\nFix commit: https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [evm repo](https://github.com/rust-blockchain/evm)\n* Email [Wei](mailto:wei@that.world)\n", "id": "GHSA-4jwq-572w-4388", "modified": "2024-01-30T23:55:38Z", "published": "2024-01-30T23:55:38Z", "references": [ { "type": "WEB", "url": "https://github.com/rust-blockchain/evm/security/advisories/GHSA-4jwq-572w-4388" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-29511" }, { "type": "WEB", "url": "https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "type": "CVSS_V3" } ], "summary": "Memory over-allocation in evm crate" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…