原始描述
In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem. It allows creation of a non-UTF-8 Rust string when the provided closure panics. This bug could result in a memory safety violation when other string APIs assume that UTF-8 encoding is used on the same string.
受影响的软件
- Rust < 1.49.0 修复版本: 1.49.0 精确匹配
详情
- 发布日期
- 2021-04-11
- 最后修改
- 2026-06-17
- CVSS 向量
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- CWE
- CWE-787
- EPSS(30 天内被利用概率)
- 1.50% (百分位 75)
参考资料
本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。