CVE-2021-38190Dimforge Nalgebra
Critical 9.8 No auth needed
Follow: this CVE · Dimforge · Dimforge Nalgebra We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Aug 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Nalgebra.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | nalgebra |
≥ 0.11.0 < 0.27.1 |
0.27.1 |
cargo update -p nalgebra --precise 0.27.1 |
| crates.io | nalgebra |
≥ 0.11.0 < 0.27.1 |
0.27.1 |
cargo update -p nalgebra --precise 0.27.1 |
Per OSV / GitHub Advisories (GHSA-3w8g-xr3f-2mp8, RUSTSEC-2021-0070). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| dimforge | nalgebra | < 0.27.1 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch