{"id":"CVE-2021-29511","aliases":["CVE-2021-29511","GHSA-4jwq-572w-4388"],"related":[],"kind":"vulnerability","state":"published","title":"Memory over-allocation in evm crate","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"evm es una implementación pura de Rust de Ethereum Virtual Machine. Anterior al parche, cuando se ejecutan códigos de operación EVM específicos relacionados con operaciones de memoria que usan la función \"evm_core::Memory::copy_large\", la crate \"evm\" puede sobreasignar memoria cuando no es necesaria, haciendo posible a un atacante llevar a cabo un ataque de denegación de servicio. El fallo fue corregido en el commit \"19ade85\". Los usuarios deberían actualizar a \"==0.21.1, ==0.23.1, ==0.24.1, ==0.25.1, )=0.26.1\". No existen soluciones alternativas. Por favor Actualice su versión de crate \"evm\"","source":"nvd"}],"published":"2021-05-12T17:15:11.000Z","modified":"2026-07-08T06:27:57.379Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","score":4,"rating":"MEDIUM"}],"cwes":["CWE-770","CWE-787"],"affected":[{"ranges":[{"version":"< 0.21.1","status":"affected"},{"version":"= 0.22.0","status":"affected"},{"version":"= 0.23.0","status":"affected"},{"version":"= 0.24.0","status":"affected"},{"version":"= 0.25.0","status":"affected"}],"vendor":"rust-blockchain","product":"evm","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.21.1"}],"ecosystem":"crates.io","package":"evm","purl":"pkg:cargo/evm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.21.1"}],"ecosystem":"crates.io","package":"evm-core","purl":"pkg:cargo/evm-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.22.0","status":"affected","fixed":"0.22.1"}],"ecosystem":"crates.io","package":"evm","purl":"pkg:cargo/evm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.23.0","status":"affected","fixed":"0.23.1"}],"ecosystem":"crates.io","package":"evm","purl":"pkg:cargo/evm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.24.0","status":"affected","fixed":"0.24.1"}],"ecosystem":"crates.io","package":"evm","purl":"pkg:cargo/evm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.25.0","status":"affected","fixed":"0.25.1"}],"ecosystem":"crates.io","package":"evm","purl":"pkg:cargo/evm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.26.0","status":"affected","fixed":"0.26.1"}],"ecosystem":"crates.io","package":"evm","purl":"pkg:cargo/evm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.22.0","status":"affected","fixed":"0.22.1"}],"ecosystem":"crates.io","package":"evm-core","purl":"pkg:cargo/evm-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.23.0","status":"affected","fixed":"0.23.1"}],"ecosystem":"crates.io","package":"evm-core","purl":"pkg:cargo/evm-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.24.0","status":"affected","fixed":"0.24.1"}],"ecosystem":"crates.io","package":"evm-core","purl":"pkg:cargo/evm-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.25.0","status":"affected","fixed":"0.25.1"}],"ecosystem":"crates.io","package":"evm-core","purl":"pkg:cargo/evm-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.26.0","status":"affected","fixed":"0.26.1"}],"ecosystem":"crates.io","package":"evm-core","purl":"pkg:cargo/evm-core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.21.0"},{"status":"affected","version":"0.22.0"},{"status":"affected","version":"0.23.0"},{"status":"affected","version":"0.24.0"},{"status":"affected","version":"0.25.0"},{"status":"affected","version":"0.26.0"}],"vendor":"evm_project","product":"evm","cpe":"cpe:2.3:a:evm_project:evm:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-4jwq-572w-4388","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://crates.io/crates/evm","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29511","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29511","url":"https://www.cve.org/CVERecord?id=CVE-2021-29511","licence":"CVE Terms of Use","modified":"2024-08-03T22:11:05.441Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4jwq-572w-4388","url":"https://github.com/advisories/GHSA-4jwq-572w-4388","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:57.379Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29511","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29511","licence":"Public domain","modified":"2026-06-17T03:47:48.350Z"}],"updatedAt":"2026-11-25T22:58:01.318Z","epss":{"score":0.0142,"percentile":0.73625,"date":"2026-12-01T12:00:22.000Z"}}