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

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-05-11T12:00:00.000Z
- Modified: 2023-11-08T04:16:40.750Z
- Also known as: RUSTSEC-2021-0066
- Weaknesses: CWE-789

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

(As written by GitHub Advisory Database.)

## Affected

- evm-core (crates.io): from 0.26.0 before 0.26.1; from 0.25.0 before 0.25.1; from 0.24.0 before 0.24.1; from 0.23.0 before 0.23.1; before 0.21.1; from 0.0.0-0 before 0.21.1; from 0.22.0-0 before 0.23.1; from 0.24.0-0 before 0.24.1; from 0.25.0-0 before 0.25.1; from 0.26.0-0 before 0.26.1

## References

- <https://github.com/rust-blockchain/evm/commit/19ade85> (web)
- <https://github.com/rust-blockchain/evm> (package, web)
- <https://rustsec.org/advisories/RUSTSEC-2021-0066.html> (advisory, web)
- <https://crates.io/crates/evm-core> (package)

## Sources

- GitHub Advisory Database: [GHSA-773q-5334-5gf9](https://github.com/advisories/GHSA-773q-5334-5gf9), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0066](https://rustsec.org/advisories/RUSTSEC-2021-0066.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-773q-5334-5gf9 · Whole record: https://cve.day/GHSA-773q-5334-5gf9.json · Rebuilt by cve.day 2026-11-25T22:56:43.041Z
