7.5high
Array size is not checked in sized-chunks
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.78% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-64gv-qg2v-vxv6GHSA-9p9m-9xww-qjcxGHSA-fqpx-cq8x-9wp4GHSA-mp6f-p9gp-vpj9GHSA-rfgg-vccr-m46mGHSA-x54v-qxxr-93qcRUSTSEC-2020-0041
Description
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, the array size is not checked when constructed with unit().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| sized-chunks (crates.io) | before 0.6.3, from 0.0.0-0 before 0.6.3 | GitHub Advisory Database, RustSec Advisory Database |
| sized-chunks_project sized-chunks | up to 0.6.2 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, the array size is not checked when constructed with unit().
GitHub Advisory Database
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, the array size is not checked when constructed with From<InlineArray<A, T>>.
GitHub Advisory Database
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the InlineArray implementation, an unaligned reference may be generated for a type that has a large alignment requirement.
GitHub Advisory Database
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, the array size is not checked when constructed with pair().
GitHub Advisory Database
An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. In the Chunk implementation, clone can have a memory-safety issue upon a panic.
GitHub Advisory Database
Chunk:
- Array size is not checked when constructed with unit() and pair().
- Array size is not checked when constructed with From<InlineArray<A, T>>.
- Clone and insert_from are not panic-safe; A panicking iterator causes memory safety issues with them.
InlineArray:
- Generates unaligned references for types with a large alignment requirement.
RustSec Advisory Database
Chunk:
- Array size is not checked when constructed with
unit()andpair(). - Array size is not checked when constructed with
From<InlineArray<A, T>>. Cloneandinsert_fromare not panic-safe; A panicking iterator causes memory safety issues with them.
InlineArray:
- Generates unaligned references for types with a large alignment requirement.
NVD (es)
Se detectó un problema en el crate sized-chunks versiones hasta 0.6.2 para Rust. En la implementación de Chunk, el tamaño de la matriz no es comprobado cuando se construye con la función unit()
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-25791 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-64gv-qg2v-vxv6 changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-9p9m-9xww-qjcx changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-fqpx-cq8x-9wp4 changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-mp6f-p9gp-vpj9 changed 2024-04-22 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-rfgg-vccr-m46m changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-x54v-qxxr-93qc changed 2024-03-15 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0041 changed 2024-03-15 | CC0-1.0 |
| NVD | CVE-2020-25791 changed 2026-06-17 | Public domain |