{"id":"RUSTSEC-2021-0145","revision":"b1de7a7a0d3f4296b189b01f722e6cbe","records":[{"revision":"b1de7a7a0d3f4296b189b01f722e6cbe","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0145","aliases":["GHSA-g98v-hv3f-hcfr"],"title":"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","state":0,"publishedAt":"2021-07-04T12:00:00+00:00","modifiedAt":"2023-11-08T04:19:25.814075+00:00","affected":[{"ecosystem":"crates.io","name":"atty","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/atty","https://rustsec.org/advisories/RUSTSEC-2021-0145.html","https://github.com/softprops/atty/issues/50","https://github.com/softprops/atty/pull/51","https://github.com/softprops/atty/issues/57"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0145","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0145","identifiers":["RUSTSEC-2021-0145","GHSA-g98v-hv3f-hcfr"]},"retained":false,"historicalAffected":[]}],"coverage":[]}