# CVE-2021-38190: Out of bounds write in nalgebra

- 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.41%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-06T12:00:00.000Z
- Modified: 2026-06-17T04:01:43.627Z
- Also known as: GHSA-3w8g-xr3f-2mp8, RUSTSEC-2021-0070
- Weaknesses: CWE-119, CWE-787
- Assigned by: mitre

## Description

An issue was discovered in the nalgebra crate before 0.27.1 for Rust. It allows out-of-bounds memory access because it does not ensure that the number of elements is equal to the product of the row count and column count.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nalgebra (crates.io): from 0.11.0 before 0.27.1
- dimforge nalgebra: before 0.27.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`
- 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-0070.html> (exploit, advisory, issue-tracking, patch, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nalgebra/RUSTSEC-2021-0070.md> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38190> (advisory)
- <https://github.com/dimforge/nalgebra/issues/883> (report, web)
- <https://github.com/dimforge/nalgebra/pull/889> (web)
- <https://github.com/dimforge/nalgebra/commit/a803271fcce75b7c151e92aa099dfa546db4adc5> (web)
- <https://github.com/dimforge/nalgebra> (package)
- <https://github.com/dimforge/nalgebra/blob/dev/CHANGELOG.md#0270> (web)
- <https://crates.io/crates/nalgebra> (package)

## Sources

- CVE List: [CVE-2021-38190](https://www.cve.org/CVERecord?id=CVE-2021-38190), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3w8g-xr3f-2mp8](https://github.com/advisories/GHSA-3w8g-xr3f-2mp8), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0070](https://rustsec.org/advisories/RUSTSEC-2021-0070.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-38190](https://nvd.nist.gov/vuln/detail/CVE-2021-38190), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38190 · Whole record: https://cve.day/CVE-2021-38190.json · Rebuilt by cve.day 2026-11-25T22:58:03.054Z
