GHSA-G98V-HV3F-HCFR
Vulnerability from github – Published: 2023-06-30 20:21 – Updated: 2024-02-14 17:42
VLAI?
Summary
atty potential unaligned read
Details
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;
- std::io::IsTerminal - Stable since Rust 1.70.0
- is-terminal - Standalone crate supporting Rust older than 1.70.0"
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "atty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.2.14"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2023-06-30T20:21:59Z",
"nvd_published_at": null,
"severity": "LOW"
},
"details": "On windows, `atty` dereferences a potentially unaligned pointer.\n\nIn practice however, the pointer won\u0027t 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",
"id": "GHSA-g98v-hv3f-hcfr",
"modified": "2024-02-14T17:42:44Z",
"published": "2023-06-30T20:21:59Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/softprops/atty/issues/50"
},
{
"type": "WEB",
"url": "https://github.com/softprops/atty/pull/51"
},
{
"type": "PACKAGE",
"url": "https://github.com/softprops/atty"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0145.html"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "atty potential unaligned read"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…