Skip to main content
← All vulnerabilities
CVE-2021-29511GHSA-4JWQ-572W-4388

Memory over-allocation in evm crate

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.21.1, 0.22.1, 0.23.1, 0.24.1, 0.25.1, and 1 more
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • rust-blockchain evm

    fixed in 0.21.1

  • evmcrates.io

    fixed in 0.21.1

  • evm-corecrates.io

    fixed in 0.21.1

  • evmcrates.io

    From 0.22.0 · fixed in 0.22.1

  • evmcrates.io

    From 0.23.0 · fixed in 0.23.1

  • evmcrates.io

    From 0.24.0 · fixed in 0.24.1

  • evmcrates.io

    From 0.25.0 · fixed in 0.25.1

  • evmcrates.io

    From 0.26.0 · fixed in 0.26.1

  • evm-corecrates.io

    From 0.22.0 · fixed in 0.22.1

  • evm-corecrates.io

    From 0.23.0 · fixed in 0.23.1

  • evm-corecrates.io

    From 0.24.0 · fixed in 0.24.1

  • evm-corecrates.io

    From 0.25.0 · fixed in 0.25.1

  • evm-corecrates.io

    From 0.26.0 · fixed in 0.26.1

References 3

GitHub · rust-blockchain/evm

crates.io