Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. csv-sniffer
  4. ›
  5. GHSA-r67p-m7g9-gxw6

GHSA-r67p-m7g9-gxw6: `Read` on uninitialized memory may cause UB (fn preamble_skipcount())

June 16, 2022

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.

References

  • github.com/advisories/GHSA-r67p-m7g9-gxw6
  • github.com/jblondin/csv-sniffer/issues/1
  • github.com/jblondin/csv-sniffer/pull/2
  • rustsec.org/advisories/RUSTSEC-2021-0088.html

Code Behaviors & Features

Detect and mitigate GHSA-r67p-m7g9-gxw6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.0

Fixed versions

  • 0.2.0

Solution

Upgrade to version 0.2.0 or above.

Source file

cargo/csv-sniffer/GHSA-r67p-m7g9-gxw6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.