Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. evm-core
  4. ›
  5. GHSA-773q-5334-5gf9

GHSA-773q-5334-5gf9: Memory over-allocation in evm-core

August 25, 2021

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.

The flaw was corrected in commit 19ade85.

References

  • github.com/advisories/GHSA-773q-5334-5gf9
  • github.com/rust-blockchain/evm
  • github.com/rust-blockchain/evm/commit/19ade85
  • rustsec.org/advisories/RUSTSEC-2021-0066.html

Code Behaviors & Features

Detect and mitigate GHSA-773q-5334-5gf9 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.23.0 before 0.23.1, all versions starting from 0.24.0 before 0.24.1, all versions starting from 0.25.0 before 0.25.1, all versions starting from 0.26.0 before 0.26.1

Fixed versions

  • 0.26.1
  • 0.25.1
  • 0.24.1
  • 0.23.1
  • 0.21.1

Solution

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

Weakness

  • CWE-789: Memory Allocation with Excessive Size Value

Source file

cargo/evm-core/GHSA-773q-5334-5gf9.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:05 +0000.