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

Source: https://junglewise.ai/threats/cve-2021-29511-memory-over-allocation-in-evm-crate  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-01-30  
License: CC BY 4.0 with a link back

CVE-2021-29511 · Severity: low · CVSS 3.1 · Published 2024-01-30

Memory over-allocation in evm crate

Technologies: [evm (crates.io)](https://junglewise.ai/threats/technologies/evm), [evm-core (crates.io)](https://junglewise.ai/threats/technologies/evm-core). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2021-29511 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-29511 being exploited in the wild.

**How severe is CVE-2021-29511?** Low severity, with a CVSS score of 3.1, published 30 January 2024.

**Which products and versions are affected?** evm (crates.io) SEMVER:introduced=0,fixed=0.21.1; evm-core (crates.io) SEMVER:introduced=0,fixed=0.21.1.

**Is there a fix for CVE-2021-29511?** Yes. evm (crates.io): upgrade to 0.21.1 or later; evm-core (crates.io): upgrade to 0.21.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-29511?** Check whether you run evm (crates.io) or evm-core (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- evm (crates.io): upgrade to 0.21.1 or later

  ```sh
  cargo update -p evm
  ```

- evm-core (crates.io): upgrade to 0.21.1 or later

  ```sh
  cargo update -p evm-core
  ```


## Affected products

- evm (crates.io) SEMVER:introduced=0,fixed=0.21.1
- evm-core (crates.io) SEMVER:introduced=0,fixed=0.21.1

## Identifiers

- CVE-2021-29511
- GHSA-4jwq-572w-4388

## Related threats

- [Rust EVM erroneousle handles `record_external_operation` error return](https://junglewise.ai/threats/cve-2024-21629-rust-evm-erroneousle-handles-record-external-operation-error)
- [RUSTSEC-2022-0083 - evm incorrect state transition](https://junglewise.ai/threats/cve-2022-39354-incorrect-is-static-parameter-for-custom-stateful-precompiles-in)
- [Specification non-compliance in JUMPI](https://junglewise.ai/threats/cve-2021-41153-specification-non-compliance-in-jumpi)
- [Memory over-allocation in evm-core](https://junglewise.ai/threats/memory-over-allocation-in-evm-core-3679e623)
- [RUSTSEC-2021-0066 - Denial of service on EVM execution due to memory over-allocation](https://junglewise.ai/threats/rustsec-2021-0066-denial-of-service-on-evm-execution-due-to-memory-over-f3494486)
