Double Free Affecting insert_many package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (48th 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 Double Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-INSERTMANY-1090168
  • published1 Apr 2021
  • disclosed26 Jan 2021
  • creditUnknown

Introduced: 26 Jan 2021

CVE-2021-29933  (opens in a new tab)
CWE-415  (opens in a new tab)

How to fix?

There is no fixed version for insert_many.

Overview

Affected versions of this package are vulnerable to Double Free. Uses ptr::copy to move over items in a vector to make space before inserting, duplicating their ownership. It then iterated over a provided Iterator to insert the new items. If the iterator's .next() method panics then the vector would drop the same elements twice.

CVSS Scores

version 3.1