Memory over-allocation in evm-coreGHSA-773q-5334-5gf9
Fix: rust-blockchain/evm@19ade85GHSA-773q-5334-5gf9 is a security vulnerability in evm-core. A fix is available for evm-core — see the affected versions and patch details below.
Real-World Exposure
evm-core🦀evm-core🦀evm-core🦀evm-core🦀evm-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | evm-core | ≥ 0.26.0&&< 0.26.1 | 0.26.1cargo update -p evm-core --precise 0.26.1 |
| 🦀crates.io | evm-core | ≥ 0.25.0&&< 0.25.1 | 0.25.1cargo update -p evm-core --precise 0.25.1 |
| 🦀crates.io | evm-core | ≥ 0.24.0&&< 0.24.1 | 0.24.1cargo update -p evm-core --precise 0.24.1 |
| 🦀crates.io | evm-core | ≥ 0.23.0&&< 0.23.1 | 0.23.1cargo update -p evm-core --precise 0.23.1 |
| 🦀crates.io | evm-core | all versions | 0.21.1cargo update -p evm-core --precise 0.21.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for evm-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update evm-core to 0.26.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-773q-5334-5gf9 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-773q-5334-5gf9 in your dependencies?
Find it across crates.io, including transitive dependencies.