{"id":"GHSA-g98v-hv3f-hcfr","revision":"3828e676dae74cbfa149ddc0408b0295","records":[{"revision":"3828e676dae74cbfa149ddc0408b0295","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-g98v-hv3f-hcfr","aliases":["RUSTSEC-2021-0145"],"title":"atty potential unaligned read","description":"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\"\n","state":0,"publishedAt":"2023-06-30T20:21:59+00:00","modifiedAt":"2026-09-10T03:49:53.8971843+00:00","affected":[{"ecosystem":"crates.io","name":"atty","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.2.14"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/softprops/atty/issues/50","https://github.com/softprops/atty/pull/51","https://github.com/softprops/atty","https://rustsec.org/advisories/RUSTSEC-2021-0145.html"],"sourceUrl":"https://github.com/advisories/GHSA-g98v-hv3f-hcfr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g98v-hv3f-hcfr","identifiers":["GHSA-g98v-hv3f-hcfr","RUSTSEC-2021-0145"]},"retained":false,"historicalAffected":[]}],"coverage":[]}