{"id":"CVE-2020-36317","published":"2021-04-11T19:06:28Z","modified":"2024-08-04T17:23:10Z","title":"In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01496,"percentile":0.74019,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/rust-lang/rust/issues/78498","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-lang/rust/pull/78499","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":14.8}]},"euvd":{"id":"EUVD-2020-23859","exploited":false,"provenance":"source"}}