Vulnerability record · CVE-2020-36317 · published 11 April 2021
CVE-2020-36317: Rust-lang rust out-of-bounds write vulnerability
Rust Lang · Rust
In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem. It allows creation of a non-UTF-8 Rust string when the provided closure panics. This bug could result in a memory safety violation when other string APIs assume that UTF-8 encoding is used on the same string.
Description
In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem. It allows creation of a non-UTF-8 Rust string when the provided closure panics. This bug could result in a memory safety violation when other string APIs assume that UTF-8 encoding is used on the same string.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/rust-lang/rust/issues/78498 | ExploitIssue TrackingThird Party Advisory |
| https://github.com/rust-lang/rust/pull/78499 | PatchThird Party Advisory |
| https://github.com/rust-lang/rust/issues/78498 | ExploitIssue TrackingThird Party Advisory |
| https://github.com/rust-lang/rust/pull/78499 | PatchThird Party Advisory |
Track CVE-2020-36317 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2020-36317), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.