CVE-2020-36317
High
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.
SeverityHigh
CVSS7.5
Exploit probability—
Product
Rust
PublishedApr 11, 2021
First seenApr 11, 2021
How to fix
Update
- rust-lang rust1.49.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rust-lang rust | v < 1.49.0 | 1.49.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.