GHSA-g98v-hv3f-hcfr
LOWatty potential unaligned read
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.
atty is Unmaintained
A Pull Request with a fix has been provided over a year ago but the maintainer seems to be unreachable.
Last release of atty was almost 3 years ago.
Possible Alternative(s)
The below list has not been vetted in any way and may or may not contain alternatives;
- std::io::IsTerminal - Stable since Rust 1.70.0
- is-terminal - Standalone crate supporting Rust older than 1.70.0"
- Published
- 4 Jul 2021
- Last modified
- 10 Sep 2026
- Also known as
- RUSTSEC-2021-0145
- Sources
- OSVJSONOSV RUSTSEC-2021-0145JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | atty | <= 0.2.14 | |
| OSV | crates.io | atty | >= 0.0.0-0 |
References
- https://github.com/softprops/atty/issues/50 · WEB, REPORT
- https://github.com/softprops/atty/pull/51 · WEB
- https://github.com/softprops/atty · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2021-0145.html · WEB, ADVISORY
- https://crates.io/crates/atty · PACKAGE
- https://github.com/softprops/atty/issues/57 · REPORT
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Jun 2023)