CVE-2021-29933
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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| insert_many (crates.io) | up to 0.1.1, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| insert_many_project insert_many | up to 2021-01-26 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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
| https://rustsec.org/advisories/RUSTSEC-2021-0042.html | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29933 | advisory | |
| https://github.com/rphmeier/insert_many/issues/1 | report, web | |
| https://github.com/rphmeier/insert_many | package | |
| https://crates.io/crates/insert_many | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29933 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-29hg-r7c7-54fr changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0042 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-29933 changed 2026-06-17 | Public domain |