GHSA-p46c-w9m3-7qr2

Suggest an improvement
Source
https://github.com/advisories/GHSA-p46c-w9m3-7qr2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-p46c-w9m3-7qr2/GHSA-p46c-w9m3-7qr2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-p46c-w9m3-7qr2
Aliases
Published
2022-01-06T22:18:35Z
Modified
2023-11-08T04:07:21.677152Z
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
Use of Uninitialized Resource in flumedb.
Details

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. There are two of such cases (gooffsetlog::readentry() & offsetlog::read_entry()).

Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.

Database specific
{
    "nvd_published_at": "2021-12-27T00:15:00Z",
    "cwe_ids": [
        "CWE-908"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-06T18:10:24Z"
}
References

Affected packages

crates.io / flumedb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.1.6