{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-29511","id":"CVE-2021-29511","title":"Memory over-allocation in evm crate","description":"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","descriptionLong":"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.","published":"2021-05-12T17:15:11.000Z","updated":"2026-10-24T10:50:08.183694736Z","reserved":"2021-03-30T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["rust-blockchain evm"],"affectedProducts":[{"vendor":"rust-blockchain","product":"evm","defaultStatus":null,"versions":[{"status":"affected","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"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"evm","purl":"pkg:cargo/evm","ranges":["<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"],"fixed":["0.21.1","0.22.1","0.23.1","0.24.1","0.25.1","0.26.1"],"advisory":"GHSA-4jwq-572w-4388"},{"ecosystem":"crates.io","name":"evm-core","purl":"pkg:cargo/evm-core","ranges":["<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"],"fixed":["0.21.1","0.22.1","0.23.1","0.24.1","0.25.1","0.26.1"],"advisory":"GHSA-4jwq-572w-4388"}],"cwes":["CWE-770","CWE-787"],"aliases":["GHSA-4jwq-572w-4388"],"references":[{"url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-4jwq-572w-4388","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://crates.io/crates/evm","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29511","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0128,"epssPercentile":0.70644,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-29511","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29511","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-29511","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4jwq-572w-4388","ok":true,"note":"GHSA-4jwq-572w-4388"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-29511","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}