CVE-2021-38190 json
Out of bounds write in nalgebra
published 2021-06-06 5 y ago modified 2026-06-17 4 mo ago also GHSA-3w8g-xr3f-2mp8 , RUSTSEC-2021-0070 , EUVD-2021-1552
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io nalgebra 0.27.1
- dimforge nalgebra 0.27.1
- github.com/dimforge/nalgebra@a803271 commit
- github.com/dimforge/nalgebra#889 pull request
- rustsec.org/advisories/RUSTSEC-2021-0070.html advisory
Exploit prediction
1.41% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0070.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | nalgebra | >=0.11.0, <0.27.1 |
0.27.1 |
Classification
References
-
rustsec.org
/advisories/RUSTSEC-2021-0070.html
web, exploit, issue-tracking, patch, third-party-advisory, advisory
-
github.com
/dimforge/nalgebra/pull/889
web
-
github.com
/dimforge/nalgebra/commit/a803271fcce75b7c151e92aa099dfa546db4adc5
web
-
raw.githubusercontent.com
/rustsec/advisory-db/main/crates/nalgebra/RUSTSEC-2021-0070.md
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-38190
advisory
-
github.com
/dimforge/nalgebra/issues/883
web, report
-
github.com
/dimforge/nalgebra
package
-
github.com
/dimforge/nalgebra/blob/dev/CHANGELOG.md#0270
web
-
crates.io
/crates/nalgebra
package
Sources
- CVE List CVE-2021-38190
- GitHub Advisory GHSA-3w8g-xr3f-2mp8
- NVD CVE-2021-38190
- OSV RUSTSEC-2021-0070
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.