Skip to content
Fencer Intel
critical 9.8

CVE-2018-20991 json

Double free in smallvec

published 8y ago modified 3mo ago also GHSA-rxr4-x558-x7hw , RUSTSEC-2018-0003 , EUVD-2021-1878

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 79%
public exploits
0
none known

Summary

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

Patch / fix

  • crates.io smallvec 0.3.4, 0.4.5, 0.5.1, 0.6.3
  • servo smallvec 0.6.3
  • librsvg SLE Module for Package Hub 15 SP2 2.42.9-3.6.1

suse advisories SUSE-SU-2021:1310-1

Is CVE-2018-20991 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Exploit prediction

1.85% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
crates.io smallvec
>=0.3.2, <0.6.3
>=0.3.2, <0.3.4
>=0.4.0-0, <0.4.5
>=0.5.0-0, <0.5.1
>=0.6.0-0, <0.6.3
0.6.3
0.3.4
0.4.5
0.5.1

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.