CVE-2021-29511
published medium CVSS 3.1 · 6.5Memory over-allocation in evm crate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rust-blockchain | — | evm< 0.21.1 · = 0.22.0 · = 0.23.0 · = 0.24.0 · = 0.25.0 | Affected | Not stated | GitHub_M |
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.1, ==0.23.1, ==0.24.1, ==0.25.1, >=0.26.1`. There are no workarounds. Please upgrade your `evm` crate version.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rust-blockchain | evm | < 0.21.1 (affected)= 0.22.0 (affected)= 0.23.0 (affected)= 0.24.0 (affected)= 0.25.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-770 {"CWE-770":"Allocation of Resources Without Limits or Throttling"}
References
3Provider assertions
2GitHub_M · cna
Memory over-allocation in evm crate
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 28bae5c7ec42e6f7d9f6a1aabc37280114a01e86c6a1bb52f3280a889775be9f
- Ingested
- 23 Sep 2026, 07:53:55 UTC
- Source record
- Official CVE record