GHSA-3w8g-xr3f-2mp8

Suggest an improvement
Source
https://github.com/advisories/GHSA-3w8g-xr3f-2mp8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-3w8g-xr3f-2mp8/GHSA-3w8g-xr3f-2mp8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3w8g-xr3f-2mp8
Aliases
Published
2021-08-25T20:55:49Z
Modified
2023-11-08T04:06:25.921387Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Out of bounds write in nalgebra
Details

The Deserialize implementation for VecStorage did not maintain the invariant that the number of elements must equal nrows * ncols. Deserialization of specially crafted inputs could allow memory access beyond allocation of the vector.

This flaw was introduced in v0.11.0 (086e6e) due to the addition of an automatically derived implementation of Deserialize for MatrixVec. MatrixVec was later renamed to VecStorage in v0.16.13 (0f66403) and continued to use the automatically derived implementation of Deserialize.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "github_reviewed_at": "2021-08-18T21:30:58Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-119",
        "CWE-787"
    ]
}
References

Affected packages

crates.io / nalgebra

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.11.0
Fixed
0.27.1