{"id":"GHSA-g98v-hv3f-hcfr","aliases":["GHSA-g98v-hv3f-hcfr","RUSTSEC-2021-0145"],"related":[],"kind":"vulnerability","state":"published","title":"atty potential unaligned read","summary":"On windows, `atty` dereferences a potentially unaligned pointer.\n\nIn practice however, the pointer won't be unaligned unless a custom global allocator is used.\n\nIn particular, the `System` allocator on windows uses `HeapAlloc`, which guarantees a large enough alignment.\n\n# atty is Unmaintained\n\nA Pull Request with a fix has been provided over a year ago but the maintainer seems to be unreachable.\n\nLast release of `atty` was almost 3 years ago.\n\n## Possible Alternative(s)\n\nThe below list has not been vetted in any way and may or may not contain alternatives;\n\n- [std::io::IsTerminal](https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html) - Stable since Rust 1.70.0\n- [is-terminal](https://crates.io/crates/is-terminal) - Standalone crate supporting Rust older than 1.70.0\"","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"On windows, `atty` dereferences a potentially unaligned pointer.\n\nIn practice however, the pointer won't be unaligned unless a custom global allocator is used.\n\nIn particular, the `System` allocator on windows uses `HeapAlloc`, which guarantees a large enough alignment.\n\n# atty is Unmaintained\n\nA Pull Request with a fix has been provided over a year ago but the maintainer seems to be unreachable.\n\nLast release of `atty` was almost 3 years ago.\n\n## Possible Alternative(s)\n\nThe below list has not been vetted in any way and may or may not contain alternatives;\n\n- [std::io::IsTerminal](https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html) - Stable since Rust 1.70.0\n- [is-terminal](https://crates.io/crates/is-terminal) - Standalone crate supporting Rust older than 1.70.0\"","format":"markdown","source":"ghsa"},{"lang":"en","text":"On windows, `atty` dereferences a potentially unaligned pointer.\n\nIn practice however, the pointer won't be unaligned unless a custom global allocator is used.\n\nIn particular, the `System` allocator on windows uses `HeapAlloc`, which guarantees a large enough alignment.\n\n# atty is Unmaintained\n\nA Pull Request with a fix has been provided over a year ago but the maintainer seems to be unreachable.\n\nLast release of `atty` was almost 3 years ago.\n\n## Possible Alternative(s)\n\nThe below list has not been vetted in any way and may or may not contain alternatives;\n\n - [std::io::IsTerminal](https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html) - Stable since Rust 1.70.0\n - [is-terminal](https://crates.io/crates/is-terminal) - Standalone crate supporting Rust older than 1.70.0","format":"markdown","source":"rustsec"}],"published":"2021-07-04T12:00:00.000Z","modified":"2026-09-10T03:49:53.897Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.2.14"}],"ecosystem":"crates.io","package":"atty","purl":"pkg:cargo/atty","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"atty","purl":"pkg:cargo/atty","source":"rustsec"}],"references":[{"url":"https://github.com/softprops/atty/issues/50","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/softprops/atty/pull/51","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/softprops/atty","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0145.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/atty","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/softprops/atty/issues/57","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g98v-hv3f-hcfr","url":"https://github.com/advisories/GHSA-g98v-hv3f-hcfr","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:53.897Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0145","url":"https://rustsec.org/advisories/RUSTSEC-2021-0145.html","licence":"CC0-1.0","modified":"2023-11-08T04:19:25.814Z"}],"updatedAt":"2026-11-25T22:56:43.085Z"}