# CVE-2021-25900: RUSTSEC-2021-0003 - Buffer overflow in SmallVec::insert_many

Source: https://junglewise.ai/threats/cve-2021-25900-buffer-overflow-in-smallvec-insert-many  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-01-08  
License: CC BY 4.0 with a link back

CVE-2021-25900 · Severity: low · CVSS 3.1 · Published 2021-01-08

Buffer overflow in SmallVec::insert_many

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

## Quick answers

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

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

**Which products and versions are affected?** smallvec (crates.io) SEMVER:introduced=0.6.3,fixed=0.6.14, SEMVER:introduced=0.6.3,fixed=0.6.14,introduced=1.0.0,fixed=1.6.1.

**Is there a fix for CVE-2021-25900?** Yes. smallvec (crates.io): upgrade to 0.6.14, 1.6.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-25900?** Check whether you run smallvec (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

- smallvec (crates.io): upgrade to 0.6.14, 1.6.1 or later

  ```sh
  cargo update -p smallvec
  ```


## Affected products

- smallvec (crates.io) SEMVER:introduced=0.6.3,fixed=0.6.14, SEMVER:introduced=0.6.3,fixed=0.6.14,introduced=1.0.0,fixed=1.6.1

## Identifiers

- CVE-2021-25900
- GHSA-43w2-9j62-hq99
- RUSTSEC-2021-0003

## Related threats

- [RUSTSEC-2019-0012 - Memory corruption in SmallVec::grow()](https://junglewise.ai/threats/cve-2019-15554-memory-corruption-in-smallvec)
- [RUSTSEC-2019-0009 - Double-free and use-after-free in SmallVec::grow()](https://junglewise.ai/threats/cve-2019-15551-double-free-in-smallvec)
- [RUSTSEC-2018-0018 - smallvec creates uninitialized value of any type](https://junglewise.ai/threats/cve-2018-25023-use-of-uninitialized-resource-in-smallvec)
- [RUSTSEC-2018-0003 - Possible double free during unwinding in SmallVec::insert_many](https://junglewise.ai/threats/cve-2018-20991-double-free-in-smallvec)
