{"id":"CVE-2020-25794","aliases":["CVE-2020-25794","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-25791","CVE-2020-25792","CVE-2020-25793","CVE-2020-25795","CVE-2020-25796"],"kind":"vulnerability","state":"published","title":"Array size is not checked in sized-chunks","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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>>.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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().","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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().","format":"markdown","source":"ghsa"},{"lang":"en","text":"Chunk:\n\n* Array size is not checked when constructed with unit() and pair().\n* Array size is not checked when constructed with From<InlineArray<A, T>>.\n* Clone and insert_from are not panic-safe; A panicking iterator causes memory safety issues with them.\n\nInlineArray:\n\n* Generates unaligned references for types with a large alignment requirement.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Chunk:\n\n* Array size is not checked when constructed with `unit()` and `pair()`.\n* Array size is not checked when constructed with `From<InlineArray<A, T>>`.\n* `Clone` and `insert_from` are not panic-safe; A panicking iterator causes memory safety issues with them.\n\nInlineArray:\n\n* Generates unaligned references for types with a large alignment requirement.","format":"markdown","source":"rustsec"},{"lang":"es","text":"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","source":"nvd"}],"published":"2020-09-06T12:00:00.000Z","modified":"2026-06-17T03:07:19.080Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-129","CWE-401"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.6.3"}],"ecosystem":"crates.io","package":"sized-chunks","purl":"pkg:cargo/sized-chunks","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"0.6.2"}],"vendor":"sized-chunks_project","product":"sized-chunks","cpe":"cpe:2.3:a:sized-chunks_project:sized-chunks:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0041.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/bodil/sized-chunks/issues/11","tags":["exploit","patch","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25793","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bodil/sized-chunks","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25791","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25796","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25792","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bodil/sized-chunks/commit/3ae48bd463c1af41c24b96b84079946f51f51e3c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/bodil/sized-chunks/commit/99e593c3037438db478256a1f3101371a69cbd3f","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25794","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25795","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/sized-chunks","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-25794","url":"https://www.cve.org/CVERecord?id=CVE-2020-25794","licence":"CVE Terms of Use","modified":"2024-08-04T15:40:36.931Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-64gv-qg2v-vxv6","url":"https://github.com/advisories/GHSA-64gv-qg2v-vxv6","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.938Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9p9m-9xww-qjcx","url":"https://github.com/advisories/GHSA-9p9m-9xww-qjcx","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.938Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fqpx-cq8x-9wp4","url":"https://github.com/advisories/GHSA-fqpx-cq8x-9wp4","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.938Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mp6f-p9gp-vpj9","url":"https://github.com/advisories/GHSA-mp6f-p9gp-vpj9","licence":"CC-BY-4.0","modified":"2024-04-22T18:52:15.000Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rfgg-vccr-m46m","url":"https://github.com/advisories/GHSA-rfgg-vccr-m46m","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.938Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x54v-qxxr-93qc","url":"https://github.com/advisories/GHSA-x54v-qxxr-93qc","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.938Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0041","url":"https://rustsec.org/advisories/RUSTSEC-2020-0041.html","licence":"CC0-1.0","modified":"2024-03-15T00:05:17.938Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25794","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25794","licence":"Public domain","modified":"2026-06-17T03:07:19.080Z"}],"updatedAt":"2026-11-25T22:57:54.829Z","epss":{"score":0.01781,"percentile":0.78913,"date":"2026-12-01T12:00:22.000Z"}}