{"id":"RUSTSEC-2021-0003","revision":null,"records":[{"revision":"c873f4538aec49a8b277f914400334a4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-25900","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2021-01-22T09:03:36+00:00","modifiedAt":"2024-08-03T20:11:28.459+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"n/a\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"n/a\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0003.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-25900","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-25900","identifiers":["CVE-2021-25900"]},"retained":false,"historicalAffected":[]},{"revision":"67d977a8002b4d2d98c3e5c87ca1f965","observedAt":"2026-11-24T06:31:46.132+00:00","statement":{"source":"euvd","id":"EUVD-2022-2287","aliases":["CVE-2021-25900","GHSA-43w2-9j62-hq99"],"title":"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.","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0003.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-2287","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jan 22, 2021, 9:03:36 AM","dateUpdated":"Aug 3, 2024, 8:11:28 PM"},"relatedAdvisories":[{"id":"openSUSE-SU-2024:11593-1","title":"gdk-pixbuf-loader-rsvg-2.52.2-2.1 on GA media","vulnerabilityIds":["CVE-2021-25900"]},{"id":"SUSE-SU-2021:1408-1","title":"Security update for librsvg","vulnerabilityIds":["CVE-2021-25900"]},{"id":"openSUSE-SU-2021:0634-1","title":"Security update for librsvg","vulnerabilityIds":["CVE-2021-25900"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-2287","identifiers":["EUVD-2022-2287","CVE-2021-25900","GHSA-43w2-9j62-hq99"]},"retained":false,"historicalAffected":[]},{"revision":"31a7d4a0c09049e1a77370ff9edea1b2","observedAt":"2026-10-24T18:17:15.354+00:00","statement":{"source":"nvd","id":"CVE-2021-25900","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2021-01-26T18:16:22.27+00:00","modifiedAt":"2026-06-17T03:42:32.73+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"severity":"HIGH"}],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0003.html"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-25900","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-787"],"productCriteria":["cpe:2.3:a:servo:smallvec:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2021-01-26T18:16:22.270","lastModified":"2026-06-17T03:42:32.730"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2021-25900","identifiers":["CVE-2021-25900"]},"retained":false,"historicalAffected":[]},{"revision":"43c4d83f03d74e078304abbbb405ae90","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-43w2-9j62-hq99","aliases":["CVE-2021-25900","RUSTSEC-2021-0003"],"title":"Buffer overflow in SmallVec::insert_many","description":"A bug in the SmallVec::insert_many method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap. This bug was only triggered if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.\n\nThe flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of insert_many to use less unsafe code, so it is easier to verify its correctness.","state":0,"publishedAt":"2022-05-24T17:40:21+00:00","modifiedAt":"2023-11-08T04:05:16.493284+00:00","affected":[{"ecosystem":"crates.io","name":"smallvec","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.6.3"},{"kind":"fixed","version":"0.6.14"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"smallvec","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.6.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-25900","https://github.com/servo/rust-smallvec/issues/252","https://github.com/servo/rust-smallvec/commit/5757ac500d4e544485d796b542e4e589749c291b","https://github.com/servo/rust-smallvec/commit/9998ba0694a6b51aa6604748b00b6a98f0a0039e","https://github.com/servo/rust-smallvec","https://rustsec.org/advisories/RUSTSEC-2021-0003.html"],"sourceUrl":"https://github.com/advisories/GHSA-43w2-9j62-hq99","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-43w2-9j62-hq99","identifiers":["GHSA-43w2-9j62-hq99","CVE-2021-25900","RUSTSEC-2021-0003"]},"retained":false,"historicalAffected":[]},{"revision":"4f5f7f964f914d3185ac9bd86caa4038","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0003","aliases":["CVE-2021-25900","GHSA-43w2-9j62-hq99"],"title":"Buffer overflow in SmallVec::insert_many","description":"A bug in the `SmallVec::insert_many` method caused it to allocate a buffer that was smaller than needed.  It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap.\n\nThis bug was only triggered if the iterator passed to `insert_many` yielded more items than the lower bound returned from its `size_hint` method.\n \nThe flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted.  The fix also simplified the implementation of `insert_many` to use less unsafe code, so it is easier to verify its correctness.\n\nThank you to Yechan Bae ([@Qwaz](https://github.com/Qwaz)) and the Rust group at Georgia Tech’s SSLab for finding and reporting this bug.","state":0,"publishedAt":"2021-01-08T12:00:00+00:00","modifiedAt":"2026-07-17T16:00:03.2081764+00:00","affected":[{"ecosystem":"crates.io","name":"smallvec","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.6.3"},{"kind":"fixed","version":"0.6.14"},{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.6.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/smallvec","https://rustsec.org/advisories/RUSTSEC-2021-0003.html","https://github.com/servo/rust-smallvec/issues/252"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0003","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0003","identifiers":["RUSTSEC-2021-0003","CVE-2021-25900","GHSA-43w2-9j62-hq99"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T14:27:28.7769286+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T14:27:28.7769286+00:00","lastSuccessAt":"2026-11-24T14:27:29.0577822+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:29.0577826+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-2991e6521ef566e0c10209820ac50ab7e651f12955d3aa3999a89d4645ccf91a","complete":true,"records":431180,"lastAttemptAt":"2026-11-24T14:25:34.0694597+00:00","lastSuccessAt":"2026-11-24T14:25:33.9638684+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:25:34.0694597+00:00","snapshotPublishedAt":"2026-11-24T13:29:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-856372ccbc504bdfabe25695728fae30","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T14:30:13.8733764+00:00","lastSuccessAt":"2026-11-24T14:30:13.869+00:00","error":"229 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T14:30:13.869+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13982,"failedIdentifiers":229},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T14:27:28.7769286+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T14:27:28.7769286+00:00","lastSuccessAt":"2026-11-24T14:27:29.0592661+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:29.0592662+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7e06b8e9a29b4d0684cd567054cf3772","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T14:27:54.293013+00:00","lastSuccessAt":"2026-11-24T14:27:54.289+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:54.289+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13483,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T14:27:28.6267034+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:28.6267034+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T14:25:34.2388851+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:25:34.2388851+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T14:27:28.7339491+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:28.7339491+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-21aaa182de2be10c5d73aacd59f230967dc45fb154b9c5733ffb9433db7eecea","complete":true,"records":232963,"lastAttemptAt":"2026-11-24T14:27:28.4958157+00:00","lastSuccessAt":"2026-11-24T14:27:27.4013449+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:28.4958157+00:00","snapshotPublishedAt":"2026-11-24T13:48:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}