CVE-2020-36323

HIGH

Rust < 1.52.0 - Use-After-Free via String Join Optimization

Title source: llm
STIX 2.1

Description

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 (7)

Core 7
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-lang/rust/issues/80335
Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-lang/rust/pull/81728
Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-lang/rust/pull/81728#issuecomment-821549174
Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-lang/rust/pull/81728#issuecomment-824904190

Scores

CVSS v3 8.2
EPSS 0.0204
EPSS Percentile 78.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Details

CWE
CWE-134
Status published
Products (4)
fedoraproject/fedora 32
fedoraproject/fedora 33
fedoraproject/fedora 34
rust-lang/rust < 1.52.0
Published Apr 14, 2021
Tracked Since Feb 18, 2026