{"id":"CVE-2021-28876","aliases":["CVE-2021-28876"],"related":[],"kind":"vulnerability","state":"published","title":"In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue.","summary":"In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.","source":"cvelist"},{"lang":"es","text":"En la biblioteca estándar de Rust versiones anteriores a 1.52.0, la implementación de Zip presenta un problema de seguridad de pánico.&#xa0;Llama a la función __iterator_get_unchecked() más de una vez para el mismo índice cuando el iterador subyacente entra en pánico (en determinadas condiciones).&#xa0;Este bug podría conllevar a una violación de seguridad de la memoria debido a un requisito de seguridad no cumplido para el rasgo TrustedRandomAccess","source":"nvd"}],"published":"2021-04-11T00:00:00.000Z","modified":"2026-06-17T03:47:00.457Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-755"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.52.0"}],"vendor":"rust-lang","product":"rust","cpe":"cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rust-lang/rust/issues/81740","tags":["exploit","issue-tracking","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rust-lang/rust/pull/81741","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202210-09","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28876","url":"https://www.cve.org/CVERecord?id=CVE-2021-28876","licence":"CVE Terms of Use","modified":"2024-08-03T21:55:11.787Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28876","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28876","licence":"Public domain","modified":"2026-06-17T03:47:00.457Z"}],"updatedAt":"2026-11-25T22:58:00.704Z","epss":{"score":0.01566,"percentile":0.76043,"date":"2026-12-01T12:00:22.000Z"}}