Advisory

RUSTSEC-2021-0066

Also known as: GHSA-773q-5334-5gf9

Summary

Denial of service on EVM execution due to memory over-allocation

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-05-11 12:00 UTC
Modified
2023-11-08 04:16 UTC

Affected packages and fixes

evm-core

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.21.1, introduced 0.22.0-0, fixed 0.23.1, introduced 0.24.0-0, fixed 0.24.1, introduced 0.25.0-0, fixed 0.25.1, introduced 0.26.0-0, fixed 0.26.1 (semver)

Fixed versions

0.21.1, 0.23.1, 0.24.1, 0.25.1, 0.26.1

Fix

  • Fixed version 0.21.1
    cargo update -p evm-core --precise 0.21.1
  • Fixed version 0.23.1
    cargo update -p evm-core --precise 0.23.1
  • Fixed version 0.24.1
    cargo update -p evm-core --precise 0.24.1
  • Fixed version 0.25.1
    cargo update -p evm-core --precise 0.25.1
  • Fixed version 0.26.1
    cargo update -p evm-core --precise 0.26.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences