{"id":"CVE-2021-29511","published":"2021-05-12T17:15:11Z","modified":"2024-08-03T22:11:05Z","title":"Memory over-allocation in evm crate","vendor":"rust-blockchain","product":"evm","tier":"tail","description":{"text":"evm is a pure Rust implementation of Ethereum Virtual Machine. Prior to the patch, when executing specific EVM opcodes related to memory operations that use `evm_core::Memory::copy_large`, the `evm` crate can over-allocate memory when it is not needed, making it possible for an attacker to perform denial-of-service attack. 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`. There are no workarounds. Please upgrade your `evm` crate version.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0128,"percentile":0.70735,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-4jwq-572w-4388","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd","tags":["x_refsource_MISC"]},{"url":"https://crates.io/crates/evm","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":14.15},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"rust-blockchain","affectedVersions":[{"vendor":"rust-blockchain","product":"evm","versions":["< 0.21.1","= 0.22.0","= 0.23.0","= 0.24.0","= 0.25.0"]}],"affected":[{"ecosystem":"crates.io","package":"evm","vulnerableRanges":["<0.21.1",">=0.22.0, <0.22.1",">=0.23.0, <0.23.1",">=0.24.0, <0.24.1",">=0.25.0, <0.25.1",">=0.26.0, <0.26.1"],"patched":["0.21.1","0.22.1","0.23.1","0.24.1","0.25.1","0.26.1"],"from":["GHSA-4jwq-572w-4388"],"provenance":"source"},{"ecosystem":"crates.io","package":"evm-core","vulnerableRanges":["<0.21.1",">=0.22.0, <0.22.1",">=0.23.0, <0.23.1",">=0.24.0, <0.24.1",">=0.25.0, <0.25.1",">=0.26.0, <0.26.1"],"patched":["0.21.1","0.22.1","0.23.1","0.24.1","0.25.1","0.26.1"],"from":["GHSA-4jwq-572w-4388"],"provenance":"source"}],"summary":{"text":"The evm crate, a pure Rust implementation of the Ethereum Virtual Machine from rust-blockchain, contains a flaw in its memory handling: when executing certain memory-related opcodes that use evm_core::Memory::copy_large, it can allocate more memory than needed. An attacker who can submit execution that triggers these opcodes, and who holds low-privilege access (the attack vector indicates network reachability with low privileges and no user interaction), can exhaust resources and cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:40Z"},"euvd":{"id":"EUVD-2024-0247","exploited":false,"provenance":"source"}}