CVE-2021-31162
9.8
CRITICAL
CVSS 3.1
EPSS 0.74%
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.
How to fix CVE-2021-31162
To remediate CVE-2021-31162, upgrade the affected package to a fixed version below.
- Alpine/rust—upgrade to 1.51.0-r2 or later
- Debian/rustc—no fix listed
Is CVE-2021-31162 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.51.0-r2
- from 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |