CVE-2020-36317
Last modified
CVE-2020-36317 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.51% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Rust-Lang | Rust | < 1.49.0 |
References
- https://github.com/rust-lang/rust/issues/78498Exploit, Issue Tracking, Third Party Advisory
- https://github.com/rust-lang/rust/pull/78499Patch, Third Party Advisory
- https://github.com/rust-lang/rust/issues/78498Exploit, Issue Tracking, Third Party Advisory
- https://github.com/rust-lang/rust/pull/78499Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-36317?
How severe is CVE-2020-36317?
How do I fix CVE-2020-36317?
Are you affected by CVE-2020-36317?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
