{"schemaVersion":3,"id":"CVE-2021-25900","aliases":["MGASA-2021-0234","SUSE-SU-2021:1408-1","UBUNTU-CVE-2021-25900","DEBIAN-CVE-2021-25900","openSUSE-SU-2021:0634-1","GHSA-43w2-9j62-hq99","RUSTSEC-2021-0003"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in the smallvec crate before 0.6.14 and 1.x before 1.6.1 for Rust. There is a heap-based buffer overflow in SmallVec::insert_many.","dates":{"published":"2021-01-22T09:03:36.000Z","modified":"2024-08-03T20:11:28.459Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0172,"percentile":0.77144,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.05399999999999988,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01666},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0172,"percentile":0.77144}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01666,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01699,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0172,"percentile":0.77144}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_3E320E44B5178D44","name":"Exploit Reference (rustsec.org)","source":"reference","url":"https://rustsec.org/advisories/RUSTSEC-2021-0003.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"Crates.Io","product":"smallvec","name":"smallvec","label":"smallvec","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/smallvec","purlType":"cargo","versions":[{"text":"≥ 0.6.3, < 0.6.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0.0, < 1.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.6.3, < 0.6.14 | ≥ 1.0.0, < 1.6.1","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-smallvec","name":"rust-smallvec","label":"rust-smallvec","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-smallvec","purlType":"deb","versions":[{"text":"< 1.4.2-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.2-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-smallvec","name":"rust-smallvec","label":"rust-smallvec","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-smallvec","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"mageia","product":"librsvg","name":"librsvg","label":"librsvg","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/librsvg","purlType":"rpm","versions":[{"text":"< 2.45.5-3.2.mga7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.45.5-3.2.mga7","eol":null,"hubHref":null},{"vendor":"opensuse","product":"librsvg&distro=openSUSE Leap 15.2","name":"librsvg","label":"librsvg&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/librsvg&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 2.46.5-lp152.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.46.5-lp152.2.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"librsvg&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","name":"librsvg","label":"librsvg&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/librsvg&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","purlType":"rpm","versions":[{"text":"< 2.46.5-3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.46.5-3.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"librsvg&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2","name":"librsvg","label":"librsvg&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/librsvg&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2","purlType":"rpm","versions":[{"text":"< 2.46.5-3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.46.5-3.3.1","eol":null,"hubHref":null},{"vendor":"servo","product":"smallvec","name":"smallvec","label":"smallvec","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.6.3, < 0.6.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0.0, < 1.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.6.3, < 0.6.14 | ≥ 1.0.0, < 1.6.1","eol":null,"hubHref":"/vendor/servo/smallvec"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0003.html","label":"rustsec.org/advisories/RUSTSEC-2021-0003.html","hostname":"rustsec.org","tags":["X Refsource MISC","REPORT","WEB","Advisory","Exploit","Patch","Third Party Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0234.html","label":"advisories.mageia.org/MGASA-2021-0234.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29055","label":"bugs.mageia.org/show_bug.cgi?id=29055","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://github.com/servo/rust-smallvec/commit/5757ac500d4e544485d796b542e4e589749c291b","label":"github.com/servo/rust-smallvec/commit/5757ac500d4e544485d796b542e4e589749c291b","hostname":"github.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211408-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20211408-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1183403","label":"bugzilla.suse.com/1183403","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-25900","label":"www.suse.com/security/cve/CVE-2021-25900","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-25900","label":"ubuntu.com/security/CVE-2021-25900","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/servo/rust-smallvec/issues/252","label":"github.com/servo/rust-smallvec/issues/252","hostname":"github.com","tags":["REPORT","WEB"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-25900","label":"www.cve.org/CVERecord?id=CVE-2021-25900","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-25900","label":"security-tracker.debian.org/tracker/CVE-2021-25900","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/HJTKYUPH7JWPY376WTC427MFFFZQ7U7L/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25900","label":"nvd.nist.gov/vuln/detail/CVE-2021-25900","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/servo/rust-smallvec/commit/9998ba0694a6b51aa6604748b00b6a98f0a0039e","label":"github.com/servo/rust-smallvec/commit/9998ba0694a6b51aa6604748b00b6a98f0a0039e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/servo/rust-smallvec","label":"github.com/servo/rust-smallvec","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://crates.io/crates/smallvec","label":"crates.io/crates/smallvec","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-01-22T09:03:36.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T20:11:28.459Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:15:24.983Z","stale":false,"partial":false}}