Email me

Rust advisories / atty

Unsound LowRUSTSEC-2021-0145 · atty

RUSTSEC-2021-0145: Potential unaligned read

Short answeratty has an API that can cause undefined behaviour from safe code: Potential unaligned read. No fixed version yet.

Crateatty
TypeUnsound
Affected versionsEvery version.
Fixed innone
SeverityLow (GitHub rating)
Published2021-07-04
Last changed2023-11-08
Also known asGHSA-g98v-hv3f-hcfr

What to do

  1. Find who pulls it in: cargo tree -i atty.
  2. Avoid the affected API, or replace the crate.

Details from the advisory

On windows, atty dereferences a potentially unaligned pointer.

In practice however, the pointer won't be unaligned unless a custom global allocator is used.

In particular, the System allocator on windows uses HeapAlloc, which guarantees a large enough alignment.

atty is Unmaintained

A Pull Request with a fix has been provided over a year ago but the maintainer seems to be unreachable.

Last release of atty was almost 3 years ago.

Possible Alternative(s)

The below list has not been vetted in any way and may or may not contain alternatives;

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for atty

Full security history of atty

Up next

Same crateatty: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ