Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. atty
  4. ›
  5. GHSA-g98v-hv3f-hcfr

GHSA-g98v-hv3f-hcfr: atty potential unaligned read

June 30, 2023 (updated February 14, 2024)

On windows, atty dereferences a potentially unaligned pointer.

In practice however, the pointer won’t be unaligned unless a custom global allocator is used.

In particular, the System allocator on windows uses HeapAlloc, which guarantees a large enough alignment.

References

  • github.com/advisories/GHSA-g98v-hv3f-hcfr
  • github.com/softprops/atty
  • github.com/softprops/atty/issues/50
  • github.com/softprops/atty/pull/51
  • rustsec.org/advisories/RUSTSEC-2021-0145.html

Code Behaviors & Features

Detect and mitigate GHSA-g98v-hv3f-hcfr 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.2.14

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/atty/GHSA-g98v-hv3f-hcfr.yml

Spotted a mistake? Edit the file on GitLab.

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

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