mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:54:32 -06:00
69 lines
2.0 KiB
JSON
69 lines
2.0 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2022-0052",
|
|
"modified": "2023-06-13T13:10:24Z",
|
|
"published": "2022-08-26T12:00:00Z",
|
|
"aliases": [
|
|
"GHSA-c439-chv8-8g2j"
|
|
],
|
|
"related": [],
|
|
"summary": "`os_socketaddr` invalidly assumes the memory layout of std::net::SocketAddr",
|
|
"details": "The [`os_socketaddr`](https://crates.io/crates/os_socketaddr) crate has assumed\n`std::net::SocketAddrV4` and `std::net::SocketAddrV6` have the same memory layout as the system C\nrepresentation `sockaddr`. It has simply casted the pointers to convert the socket addresses to the\nsystem representation.\n\nThese layout were [changed into idiomatic rust types](https://github.com/rust-lang/rust/pull/78802)\nin nightly `std`. Starting from rustc 1.64 the affected versions of this crate will have undefined\nbehaviour.",
|
|
"severity": [],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "os_socketaddr",
|
|
"purl": "pkg:cargo/os_socketaddr"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": []
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"memory-corruption"
|
|
],
|
|
"cvss": null,
|
|
"informational": "unsound"
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.2.2"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/os_socketaddr"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0052.html"
|
|
},
|
|
{
|
|
"type": "REPORT",
|
|
"url": "https://github.com/a-ba/os_socketaddr/issues/3"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |