GHSA-2326-PFPJ-VX3H
Vulnerability from github – Published: 2024-09-16 17:19 – Updated: 2024-09-16 17:19
VLAI?
Summary
lexical-core has multiple soundness issues
Details
RUSTSEC-2024-0377 contains multiple soundness issues:
- Bytes::read() allows creating instances of types with invalid bit patterns
- BytesIter::read() advances iterators out of bounds
- The
BytesItertrait has safety invariants but is public and not markedunsafe write_float()callsMaybeUninit::assume_init()on uninitialized data, which is is not allowed by the Rust abstract machineradix()callsMaybeUninit::assume_init()on uninitialized data, which is is not allowed by the Rust abstract machine
Version 1.0 fixes these issues, removes the vast majority of unsafe code, and also fixes some correctness issues.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "lexical-core"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2024-09-16T17:19:01Z",
"nvd_published_at": null,
"severity": "LOW"
},
"details": "`RUSTSEC-2024-0377` contains multiple soundness issues:\n\n 1. [Bytes::read() allows creating instances of types with invalid bit patterns](https://github.com/Alexhuszagh/rust-lexical/issues/102)\n 1. [BytesIter::read() advances iterators out of bounds](https://github.com/Alexhuszagh/rust-lexical/issues/101)\n 1. [The `BytesIter` trait has safety invariants but is public and not marked `unsafe`](https://github.com/Alexhuszagh/rust-lexical/issues/104)\n 1. [`write_float()` calls `MaybeUninit::assume_init()` on uninitialized data, which is is not allowed by the Rust abstract machine](https://github.com/Alexhuszagh/rust-lexical/issues/95)\n 1. [`radix()` calls `MaybeUninit::assume_init()` on uninitialized data, which is is not allowed by the Rust abstract machine](https://github.com/Alexhuszagh/rust-lexical/issues/126)\n\nVersion 1.0 fixes these issues, removes the vast majority of `unsafe` code, and also fixes some correctness issues.\n",
"id": "GHSA-2326-pfpj-vx3h",
"modified": "2024-09-16T17:19:01Z",
"published": "2024-09-16T17:19:01Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/Alexhuszagh/rust-lexical/issues/101"
},
{
"type": "WEB",
"url": "https://github.com/Alexhuszagh/rust-lexical/issues/102"
},
{
"type": "WEB",
"url": "https://github.com/Alexhuszagh/rust-lexical/issues/104"
},
{
"type": "WEB",
"url": "https://github.com/Alexhuszagh/rust-lexical/issues/126"
},
{
"type": "WEB",
"url": "https://github.com/Alexhuszagh/rust-lexical/issues/95"
},
{
"type": "PACKAGE",
"url": "https://github.com/Alexhuszagh/rust-lexical"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-c2hm-mjxv-89r4"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0055"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0086.html"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "lexical-core has multiple soundness issues"
}
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…