CVE-2021-29933
JSON

7.5high

Double free in insert_many

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.18% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-29hg-r7c7-54frRUSTSEC-2021-0042

Description

An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
insert_many (crates.io)up to 0.1.1, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
insert_many_project insert_manyup to 2021-01-26NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

An issue was discovered in the insert_many crate through 2021-01-26 for Rust. Elements may be dropped twice if a .next() method panics.

RustSec Advisory Database

Affected versions of insert_many used 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.

NVD (es)

Se detectó un problema en la crate insert_many hasta el 26/01/2021 para Rust. Unos elementos pueden caer dos veces si un método .next() entra en pánico.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-29933 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-29hg-r7c7-54fr changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0042 changed 2023-11-08CC0-1.0
NVDCVE-2021-29933 changed 2026-06-17Public domain