# CVE-2021-25900: Buffer overflow in SmallVec::insert_many

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/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.72%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-08T12:00:00.000Z
- Modified: 2026-07-17T16:00:03.208Z
- Also known as: GHSA-43w2-9j62-hq99, RUSTSEC-2021-0003
- Weaknesses: CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- smallvec (crates.io): from 0.6.3 before 0.6.14; from 1.0.0 before 1.6.1
- servo smallvec: from 0.6.3 before 0.6.14; from 1.0.0 before 1.6.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/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-2021-0003.html> (exploit, advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25900> (advisory)
- <https://github.com/servo/rust-smallvec/issues/252> (report, web)
- <https://github.com/servo/rust-smallvec/commit/5757ac500d4e544485d796b542e4e589749c291b> (web)
- <https://github.com/servo/rust-smallvec/commit/9998ba0694a6b51aa6604748b00b6a98f0a0039e> (web)
- <https://github.com/servo/rust-smallvec> (package)
- <https://crates.io/crates/smallvec> (package)

## Sources

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

---

Page: https://cve.day/CVE-2021-25900 · Whole record: https://cve.day/CVE-2021-25900.json · Rebuilt by cve.day 2026-11-25T22:57:59.723Z
