In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.
References
Link | Resource |
---|---|
https://github.com/rust-lang/rust/issues/80335 | Patch Third Party Advisory |
https://github.com/rust-lang/rust/pull/81728 | Patch Third Party Advisory |
https://github.com/rust-lang/rust/pull/81728#issuecomment-821549174 | Patch Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/ | Mailing List Third Party Advisory |
https://github.com/rust-lang/rust/pull/81728#issuecomment-824904190 | Patch Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/ | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/ | Mailing List Third Party Advisory |
Information
Published : 2021-04-14 00:15
Updated : 2021-04-27 07:37
NVD link : CVE-2020-36323
Mitre link : CVE-2020-36323
JSON object : View
CWE
CWE-134
Use of Externally-Controlled Format String
Products Affected
rust-lang
- rust
fedoraproject
- fedora