
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-g98v-hv3f-hcfr) affects the atty Rust crate versions <= 0.2.14, discovered on July 4, 2021. The issue involves a potential unaligned pointer dereference on Windows systems. The vulnerability is classified as low severity and primarily affects Windows-based systems using the atty crate (GitHub Advisory, RustSec Advisory).
The vulnerability stems from atty dereferencing a potentially unaligned pointer on Windows systems. In practice, this issue only manifests when using a custom global allocator, as the Windows System allocator (HeapAlloc) guarantees sufficient alignment. The issue specifically occurs in the handling of FILE_NAME_INFO structures, where pointer alignment is not properly checked (GitHub Issue).
The impact of this vulnerability is considered low severity. In typical usage scenarios with the default Windows System allocator, the issue does not manifest due to guaranteed alignment properties. However, systems using custom global allocators could potentially experience undefined behavior due to unaligned memory access (RustSec Advisory).
No official patch has been released as the crate is currently unmaintained. While a fix has been proposed via a pull request, it remains unmerged due to maintainer inactivity. Users are recommended to switch to alternative solutions such as std::io::IsTerminal (stable since Rust 1.70.0) or the is-terminal crate for older Rust versions (RustSec Advisory).
The community has responded to the unmaintained status of the atty crate by creating alternative solutions and encouraging migration to other packages. Several projects have documented their migration away from atty to alternatives like is-terminal or crossterm, highlighting the community's active response to the maintenance issues (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."