{"id":"CVE-2021-29511","aliases":["GHSA-4jwq-572w-4388"],"url":"https://o3.security/vulnerability/CVE-2021-29511","summary":"Memory over-allocation in evm crate","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, >=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","published":"2021-05-12T18:15:08.527Z","modified":"2026-07-08T06:27:29.703238660Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"evm","fixedVersion":"0.21.1"},{"ecosystem":"crates.io","name":"evm-core","fixedVersion":"0.21.1"},{"ecosystem":"crates.io","name":"evm","fixedVersion":"0.22.1"},{"ecosystem":"crates.io","name":"evm","fixedVersion":"0.23.1"},{"ecosystem":"crates.io","name":"evm","fixedVersion":"0.24.1"},{"ecosystem":"crates.io","name":"evm","fixedVersion":"0.25.1"},{"ecosystem":"crates.io","name":"evm","fixedVersion":"0.26.1"},{"ecosystem":"crates.io","name":"evm-core","fixedVersion":"0.22.1"},{"ecosystem":"crates.io","name":"evm-core","fixedVersion":"0.23.1"},{"ecosystem":"crates.io","name":"evm-core","fixedVersion":"0.24.1"},{"ecosystem":"crates.io","name":"evm-core","fixedVersion":"0.25.1"},{"ecosystem":"crates.io","name":"evm-core","fixedVersion":"0.26.1"}],"fix":{"url":"https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd","label":"rust-blockchain/evm@19ade85"},"references":[{"type":"ADVISORY","url":"https://crates.io/crates/evm"},{"type":"FIX","url":"https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd"},{"type":"FIX","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T06:27:29.703238660Z"}}