Rust standard library string join uninitialized bytes exposure
CVE-2020-36323High
The Rust standard library before version 1.52.0 contains a flaw in string joining optimisation that can expose uninitialized bytes or crash the program. An attacker would need to cause a borrowed string to change after its length is checked but before the join operation completes. This requires the ability to modify strings during the join process, which could occur in multi-threaded code or code with interior mutability.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Detail
Affected versions
- rust-lang rust: before 1.52.0
- fedoraproject fedora: 32
- fedoraproject fedora: 33
- fedoraproject fedora: 34
Reports naming this CVE1 in total
· Microsoft Security Blog
FORGE Lab uses agentic tools to identify memory safety issues in Rust (opens in a new tab)