NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

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

mediumCVSS 3.1 6.5GHSA-4jwq-572w-4388

Impact Prior to the patch, when executing specific EVM opcodes related to memory operations that use evmcore::Memory::copylarge, the crate can over-allocate memory when it is not needed, making it possible for an attacker to perform denial-of-service attack. Patches The flaw was corrected in commit 19ade85. Users should upgrade to ==0.21.1, ==0.23.1, ==0.24.1, ==0.25.1, =0.26.1. Workarounds None.

Published Jan 30, 2024

Affected packages

evm

Ecosystem
Rust (crates.io)
Affected
<= 0.21.0
Fixed in
0.21.1
Check
cargo tree -i evm

evm-core

Ecosystem
Rust (crates.io)
Affected
<= 0.21.0
Fixed in
0.21.1
Check
cargo tree -i evm-core

evm

Ecosystem
Rust (crates.io)
Affected
= 0.22.0
Fixed in
0.22.1
Check
cargo tree -i evm

evm

Ecosystem
Rust (crates.io)
Affected
= 0.23.0
Fixed in
0.23.1
Check
cargo tree -i evm

evm

Ecosystem
Rust (crates.io)
Affected
= 0.24.0
Fixed in
0.24.1
Check
cargo tree -i evm

evm

Ecosystem
Rust (crates.io)
Affected
= 0.25.0
Fixed in
0.25.1
Check
cargo tree -i evm

evm

Ecosystem
Rust (crates.io)
Affected
= 0.26.0
Fixed in
0.26.1
Check
cargo tree -i evm

evm-core

Ecosystem
Rust (crates.io)
Affected
= 0.22.0
Fixed in
0.22.1
Check
cargo tree -i evm-core

evm-core

Ecosystem
Rust (crates.io)
Affected
= 0.23.0
Fixed in
0.23.1
Check
cargo tree -i evm-core

evm-core

Ecosystem
Rust (crates.io)
Affected
= 0.24.0
Fixed in
0.24.1
Check
cargo tree -i evm-core

evm-core

Ecosystem
Rust (crates.io)
Affected
= 0.25.0
Fixed in
0.25.1
Check
cargo tree -i evm-core

evm-core

Ecosystem
Rust (crates.io)
Affected
= 0.26.0
Fixed in
0.26.1
Check
cargo tree -i evm-core

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

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.

Patches

The flaw was corrected in commit 19ade85. Users should upgrade to ==0.21.1, ==0.23.1, ==0.24.1, ==0.25.1, >=0.26.1.

Workarounds

None. Please upgrade your evm crate version

References

Fix commit: https://github.com/rust-blockchain/evm/commit/19ade858c430ab13eb562764a870ac9f8506f8dd

For more information

If you have any questions or comments about this advisory:

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Rust (crates.io) vulnerabilities

All Rust (crates.io) entries