String Manipulation Vulnerability in Rust Standard Library
CVE-2020-36323
8.2HIGH
Key facts: CVE-2020-36323 is a high severity (CVSS 8.2) vulnerability in Rust-lang Rust. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 2.0%, the estimated probability of exploitation in the next 30 days.
What is CVE-2020-36323?
An issue exists in the Rust standard library found in versions prior to 1.52.0, where an optimization related to string joining could result in uninitialized bytes being exposed or potentially lead to a program crash. This vulnerability arises when a borrowed string is modified after its length has been assessed, leading to unsafe behavior in memory management. Developers should review their usage of string operations within the affected versions to mitigate risks.
References
https://github.com/rust-lang/rust/issues/80335
x_refsource_MISC
https://github.com/rust-lang/rust/pull/81728
x_refsource_MISC
https://github.com/rust-lang/rust/pull/81728#issuecomment...
x_refsource_MISC
More Rust-lang vulnerabilities
- CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
