Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rdiff
  4. ›
  5. GHSA-q579-9wp9-gfp2

GHSA-q579-9wp9-gfp2: Window can read out of bounds if Read instance returns more bytes than buffer size

June 17, 2022 (updated June 13, 2023)

rdiff performs a diff of two provided strings or files. As part of its reading code it uses the return value of a Read instance to set the length of its internal character vector.

If the Read implementation claims that it has read more bytes than the length of the provided buffer, the length of the vector will be set to longer than its capacity. This causes rdiff APIs to return uninitialized memory in its API methods.

References

  • github.com/advisories/GHSA-q579-9wp9-gfp2
  • github.com/dyule/rdiff
  • github.com/dyule/rdiff/issues/3
  • rustsec.org/advisories/RUSTSEC-2021-0094.html

Code Behaviors & Features

Detect and mitigate GHSA-q579-9wp9-gfp2 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 up to 0.1.2

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/rdiff/GHSA-q579-9wp9-gfp2.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:16 +0000.