Original 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.
Affected software
- Rust < 1.52.0 Fixed in: 1.52.0 exact match
Details
- Published
- 2021-04-14
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H- CWE
- CWE-134
- EPSS (30-day exploit probability)
- 2.03% (percentile 81)
References
- cve.org/CVE-2020-36323
- nvd.nist.gov/vuln/detail/CVE-2020-36323
- github.com/rust-lang/rust/issues/80335
- github.com/rust-lang/rust/pull/81728
- github.com/rust-lang/rust/pull/81728#issuecomment-821549174
- github.com/rust-lang/rust/pull/81728#issuecomment-824904190
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.