All vulnerabilities

Servers and applications

CVE-2021-31162

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.

Severity
Critical 9.8
Published
14 Apr 2021
Last changed
17 Jun 2026
Added to UpHeron
22 Oct 2026
Fixed in
1.52.0
Sources
NVD

Affected software

SoftwareAffected versions
RustServers and applications · cpe:a:rust-lang:rust
  • From 1.48.0 before 1.52.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-31162
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-31162