Skip to content
OpenAdvisories
Medium GHSA-773q-5334-5gf9 RUSTSEC-2021-0066

Memory over-allocation in evm-core

Published Aug 25, 2021 · Updated Nov 8, 2023 · Assigned by GHSA

Description

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

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io evm-core >= 0.26.0, < 0.26.1 0.26.1 GHSA-773q-5334-5gf9
crates.io evm-core >= 0.25.0, < 0.25.1 0.25.1 GHSA-773q-5334-5gf9
crates.io evm-core >= 0.24.0, < 0.24.1 0.24.1 GHSA-773q-5334-5gf9
crates.io evm-core >= 0.23.0, < 0.23.1 0.23.1 GHSA-773q-5334-5gf9
crates.io evm-core < 0.21.1 0.21.1 GHSA-773q-5334-5gf9
crates.io evm-core >= 0.0.0-0, < 0.21.1 · >= 0.22.0-0, < 0.23.1 · >= 0.24.0-0, < 0.24.1 · >= 0.25.0-0, < 0.25.1 · >= 0.26.0-0, < 0.26.1 0.21.1, 0.23.1, 0.24.1, 0.25.1, 0.26.1 RUSTSEC-2021-0066

References