# CVE-2018-20991: Double free in smallvec

- Severity: Critical 9.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Published: 2018-07-19T12:00:00.000Z
- Modified: 2026-07-17T16:00:03.239Z
- Also known as: GHSA-rxr4-x558-x7hw, RUSTSEC-2018-0003
- Weaknesses: CWE-415
- Assigned by: mitre

## Description

An issue was discovered in the smallvec crate before 0.6.3 for Rust. The Iterator implementation mishandles destructors, leading to a double free.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- smallvec (crates.io): from 0.3.2 before 0.6.3; from 0.3.2 before 0.3.4; from 0.4.0-0 before 0.4.5; from 0.5.0-0 before 0.5.1; from 0.6.0-0 before 0.6.3
- servo smallvec: from 0.3.2 before 0.6.3

## Every score

- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2018-0003.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-20991> (advisory)
- <https://github.com/servo/rust-smallvec/issues/96> (report, web)
- <https://github.com/servo/rust-smallvec> (package)
- <https://crates.io/crates/smallvec> (package)

## Sources

- CVE List: [CVE-2018-20991](https://www.cve.org/CVERecord?id=CVE-2018-20991), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-rxr4-x558-x7hw](https://github.com/advisories/GHSA-rxr4-x558-x7hw), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2018-0003](https://rustsec.org/advisories/RUSTSEC-2018-0003.html), CC0-1.0, modified 2026-07-17
- NVD: [CVE-2018-20991](https://nvd.nist.gov/vuln/detail/CVE-2018-20991), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-20991 · Whole record: https://cve.day/CVE-2018-20991.json · Rebuilt by cve.day 2026-11-25T22:57:42.464Z
