原始描述
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.
受影响的软件
- Rust < 1.52.0 修复版本: 1.52.0 精确匹配
详情
- 发布日期
- 2021-04-11
- 最后修改
- 2026-06-17
- CVSS 向量
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N- CWE
- CWE-755
- EPSS(30 天内被利用概率)
- 1.57% (百分位 76)
参考资料
- cve.org/CVE-2021-28876
- nvd.nist.gov/vuln/detail/CVE-2021-28876
- github.com/rust-lang/rust/issues/81740
- github.com/rust-lang/rust/pull/81741
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
- security.gentoo.org/glsa/202210-09
本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。