GitHub Advisory Database
GHSA-9783-42pm-x5jq
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | csv-sniffer | All versions before 0.2.0 (fixed in 0.2.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-45686
- https://github.com/jblondin/csv-sniffer/issues/1
- https://github.com/jblondin/csv-sniffer/pull/2
- https://github.com/jblondin/csv-sniffer
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/csv-sniffer/RUSTSEC-2021-0088.md
- https://rustsec.org/advisories/RUSTSEC-2021-0088.html