Vulnerability DatabaseGHSA-g98v-hv3f-hcfr

GHSA-g98v-hv3f-hcfr
Rust vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management