CVE-2021-31162
JSON

9.8critical

In the standard library in Rust before 1.52.0, a double free can occur in the Vec::fromiter function if freeing the element panics.

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.89% (higher than 87% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
rust-lang rustfrom 1.48.0 before 1.52.0NVD
fedoraproject fedora32, 33, 34NVD

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.

NVD (es)

En la biblioteca estándar de Rust versiones anteriores a 1.52.0, se puede producir una doble liberación en la función Vec::from_iter si se libera los pánicos del elemento

References

Sources

SourceRecordLicence
CVE ListCVE-2021-31162 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-31162 changed 2026-06-17Public domain