{"id":"CVE-2021-45686","aliases":["EUVD-2022-0542","GHSA-9783-42pm-x5jq","GHSA-r67p-m7g9-gxw6","RUSTSEC-2021-0088"],"status":"published","title":"Use of Uninitialized Resource in csv-sniffer.","description":"An issue was discovered in the csv-sniffer crate through 2021-01-05 for Rust. preamble_skipcount may read from uninitialized memory locations.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.0123,"percentile":0.69185,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-908"],"published":"2021-01-05T12:00:00Z","modified":"2026-06-17T04:13:56Z","fixes":[{"ecosystem":"crates.io","package":"csv-sniffer","fixed_in":["0.2.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"csv-sniffer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.0"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"csv-sniffer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"csv-sniffer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"csv-sniffer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"csv-sniffer","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.2.0"}]}]}],"products":[{"vendor":"csv-sniffer_project","product":"csv-sniffer"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0088.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/csv-sniffer/RUSTSEC-2021-0088.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45686","tags":["advisory"]},{"url":"https://github.com/jblondin/csv-sniffer/pull/2","tags":["web"]},{"url":"https://github.com/jblondin/csv-sniffer/issues/1","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-9783-42pm-x5jq"},{"url":"https://github.com/advisories/GHSA-r67p-m7g9-gxw6"},{"url":"https://github.com/jblondin/csv-sniffer","tags":["package"]},{"url":"https://crates.io/crates/csv-sniffer","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-45686","description":"An issue was discovered in the csv-sniffer crate through 2021-01-05 for Rust. preamble_skipcount may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:44:56Z","modified":"2024-08-04T04:47:01.963Z","updated_at":"2026-11-02T14:33:02.930115Z"}],"euvd":[{"id":"EUVD-2022-0542","description":"An issue was discovered in the csv-sniffer crate through 2021-01-05 for Rust. preamble_skipcount may read from uninitialized memory locations.","status":"published","published":"2021-12-26T21:44:56Z","modified":"2024-08-04T04:47:01Z","updated_at":"2026-11-03T03:08:26.364792Z"}],"ghsa":[{"id":"GHSA-9783-42pm-x5jq","title":"Use of Uninitialized Resource in csv-sniffer.","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation (within fn preamble_skipcount()).\n\nArbitrary 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.","status":"published","published":"2022-01-06T22:13:58Z","modified":"2023-06-13T17:22:24Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:36:53.654352Z"},{"id":"GHSA-r67p-m7g9-gxw6","title":"`Read` on uninitialized memory may cause UB (fn preamble_skipcount())","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation (within `fn preamble_skipcount()`).\n\nArbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.\nReading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n","status":"published","published":"2022-06-16T23:51:58Z","modified":"2023-06-13T17:31:37Z","updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2021-45686","description":"An issue was discovered in the csv-sniffer crate through 2021-01-05 for Rust. preamble_skipcount may read from uninitialized memory locations.","status":"published","published":"2021-12-27T00:15:09.083Z","modified":"2026-06-17T04:13:56.827Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:07:02.977492Z"}],"osv":[{"id":"GHSA-9783-42pm-x5jq","title":"Use of Uninitialized Resource in csv-sniffer.","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation (within fn preamble_skipcount()).\n\nArbitrary 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.","status":"published","published":"2022-01-06T22:13:58Z","modified":"2023-11-08T04:07:21.801873Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T15:46:43.524801Z"},{"id":"GHSA-r67p-m7g9-gxw6","title":"`Read` on uninitialized memory may cause UB (fn preamble_skipcount())","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation (within `fn preamble_skipcount()`).\n\nArbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.\nReading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.\n","status":"published","published":"2022-06-16T23:51:58Z","modified":"2023-11-08T04:07:21.801873Z","updated_at":"2026-11-02T15:46:55.480549Z"},{"id":"RUSTSEC-2021-0088","title":"`Read` on uninitialized memory may cause UB (fn preamble_skipcount())","description":"Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation (within `fn preamble_skipcount()`).\n\nArbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.\nReading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.","status":"published","published":"2021-01-05T12:00:00Z","modified":"2023-11-08T04:07:21.801873Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
