CVE-2020-25794
JSON

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, clone can have a memory-safety issue upon a panic.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
sized-chunks (crates.io)before 0.6.3, from 0.0.0-0 before 0.6.3GitHub Advisory Database, RustSec Advisory Database
sized-chunks_project sized-chunksup to 0.6.2NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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, clone can have a memory-safety issue upon a panic.

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 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 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

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() 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.
NVD (es)

Se detectó un problema en el crate sized-chunks versiones hasta 0.6.2 para Rust.&#xa0;En la implementación de Chunk, la clonación puede presentar un problema de seguridad de la memoria tras un pánico

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2020-25794 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-64gv-qg2v-vxv6 changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-9p9m-9xww-qjcx changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-fqpx-cq8x-9wp4 changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-mp6f-p9gp-vpj9 changed 2024-04-22CC-BY-4.0
GitHub Advisory DatabaseGHSA-rfgg-vccr-m46m changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-x54v-qxxr-93qc changed 2024-03-15CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0041 changed 2024-03-15CC0-1.0
NVDCVE-2020-25794 changed 2026-06-17Public domain