# CVE-2020-25791: Array size is not checked in sized-chunks

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.78%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-06T12:00:00.000Z
- Modified: 2026-06-17T03:07:18.693Z
- Also known as: GHSA-64gv-qg2v-vxv6, GHSA-9p9m-9xww-qjcx, GHSA-fqpx-cq8x-9wp4, GHSA-mp6f-p9gp-vpj9, GHSA-rfgg-vccr-m46m, GHSA-x54v-qxxr-93qc, RUSTSEC-2020-0041
- Related: CVE-2020-25792, CVE-2020-25793, CVE-2020-25794, CVE-2020-25795, CVE-2020-25796
- Weaknesses: CWE-129, CWE-401
- Assigned by: mitre

## 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().

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- sized-chunks (crates.io): before 0.6.3; from 0.0.0-0 before 0.6.3
- sized-chunks_project sized-chunks: up to 0.6.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/bodil/sized-chunks/issues/11> (exploit, patch, report, third-party-advisory, web)
- <https://rustsec.org/advisories/RUSTSEC-2020-0041.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25793> (advisory)
- <https://github.com/bodil/sized-chunks> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25791> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25796> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25792> (advisory)
- <https://github.com/bodil/sized-chunks/commit/3ae48bd463c1af41c24b96b84079946f51f51e3c> (web)
- <https://github.com/bodil/sized-chunks/commit/99e593c3037438db478256a1f3101371a69cbd3f> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25794> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25795> (advisory)
- <https://crates.io/crates/sized-chunks> (package)

## Sources

- CVE List: [CVE-2020-25791](https://www.cve.org/CVERecord?id=CVE-2020-25791), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-64gv-qg2v-vxv6](https://github.com/advisories/GHSA-64gv-qg2v-vxv6), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-9p9m-9xww-qjcx](https://github.com/advisories/GHSA-9p9m-9xww-qjcx), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-fqpx-cq8x-9wp4](https://github.com/advisories/GHSA-fqpx-cq8x-9wp4), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-mp6f-p9gp-vpj9](https://github.com/advisories/GHSA-mp6f-p9gp-vpj9), CC-BY-4.0, modified 2024-04-22
- GitHub Advisory Database: [GHSA-rfgg-vccr-m46m](https://github.com/advisories/GHSA-rfgg-vccr-m46m), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-x54v-qxxr-93qc](https://github.com/advisories/GHSA-x54v-qxxr-93qc), CC-BY-4.0, modified 2024-03-15
- RustSec Advisory Database: [RUSTSEC-2020-0041](https://rustsec.org/advisories/RUSTSEC-2020-0041.html), CC0-1.0, modified 2024-03-15
- NVD: [CVE-2020-25791](https://nvd.nist.gov/vuln/detail/CVE-2020-25791), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-25791 · Whole record: https://cve.day/CVE-2020-25791.json · Rebuilt by cve.day 2026-11-25T22:57:54.827Z
