GHSA-9783-42pm-x5jq

Suggest an improvement
Source
https://github.com/advisories/GHSA-9783-42pm-x5jq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-9783-42pm-x5jq/GHSA-9783-42pm-x5jq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9783-42pm-x5jq
Aliases
Published
2022-01-06T22:13:58Z
Modified
2023-11-08T04:07:21Z
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 csv-sniffer.
Details

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation (within fn preamble_skipcount()).

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
{
    "cwe_ids": [
        "CWE-908"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-06T17:04:29Z",
    "nvd_published_at": "2021-12-27T00:15:00Z",
    "severity": "CRITICAL"
}
References

Affected packages

crates.io / csv-sniffer

Package

Name
csv-sniffer
View open source insights on deps.dev
Purl
pkg:cargo/csv-sniffer

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-9783-42pm-x5jq/GHSA-9783-42pm-x5jq.json"