Buffer Overflow Affecting smallvec package, versions >=0.6.3 <0.6.14>=1.0.0 <1.6.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.53% (67th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-SMALLVEC-2929009
  • published17 Jun 2022
  • disclosed24 May 2022
  • creditYechan Bae

Introduced: 24 May 2022

CVE-2021-25900  (opens in a new tab)
CWE-119  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade smallvec to version 0.6.14, 1.6.1 or higher.

Overview

smallvec is a "Small vector" optimization for Rust: store up to a small number of items on the stack.

Affected versions of this package are vulnerable to Buffer Overflow in SmallVec::insert_many. Exploiting this vulnerability is possible only if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.

CVSS Base Scores

version 3.1