CVE-2020-36317

published 11 Apr 2021 · updated 4 Aug 2024

In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-36317 severity on Zeptric[![CVE-2020-36317](https://zeptric.io/badge/cve/CVE-2020-36317.svg)](https://zeptric.io/cve/CVE-2020-36317)