Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. evm
  4. ›
  5. CVE-2021-29511

CVE-2021-29511: Memory over-allocation in evm crate

January 30, 2024

Prior 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.

References

  • github.com/advisories/GHSA-4jwq-572w-4388
  • github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd
  • github.com/rust-blockchain/evm/security/advisories/GHSA-4jwq-572w-4388
  • nvd.nist.gov/vuln/detail/CVE-2021-29511

Code Behaviors & Features

Detect and mitigate CVE-2021-29511 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.21.1, all versions starting from 0.22.0 before 0.22.1, version 0.22.0, all versions starting from 0.23.0 before 0.23.1, version 0.23.0, all versions starting from 0.24.0 before 0.24.1, version 0.24.0, all versions starting from 0.25.0 before 0.25.1, version 0.25.0, all versions starting from 0.26.0 before 0.26.1, version 0.26.0

Fixed versions

  • 0.21.1
  • 0.22.1
  • 0.23.1
  • 0.24.1
  • 0.25.1
  • 0.26.1

Solution

Upgrade to versions 0.21.1, 0.22.1, 0.23.1, 0.24.1, 0.25.1, 0.26.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-787: Out-of-bounds Write

Source file

cargo/evm/CVE-2021-29511.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.