CVE-2021-38190
CRITICAL 9.8CVSS 3.1Out of bounds write in nalgebra
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.
- Published
- 8 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-119CWE-787
- Also known as
- GHSA-3w8g-xr3f-2mp8RUSTSEC-2021-0070
- Sources
- NVDJSONOSV GHSA-3w8g-xr3f-2mp8JSONOSV RUSTSEC-2021-0070JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dimforge | nalgebracpe:2.3:a:dimforge:nalgebra:*:*:*:*:*:rust:*:* |
< 0.27.1 | 0.27.1 |
| OSV | crates.io | nalgebra | >= 0.11.0, < 0.27.1 | 0.27.1 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nalgebra/RUSTSEC-2021-0070.md · Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2021-0070.html · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-38190 · ADVISORY
- https://github.com/dimforge/nalgebra/issues/883 · WEB, REPORT
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jun 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)