Rapid7 Vulnerability & Exploit Database

Red Hat: CVE-2020-36317: CVE-2020-36317 rust: memory safety violation in String::retain() (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Red Hat: CVE-2020-36317: CVE-2020-36317 rust: memory safety violation in String::retain() (Multiple Advisories)

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:N/A:P)
Published
04/11/2021
Created
05/21/2021
Added
05/21/2021
Modified
12/15/2023

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.

Solution(s)

  • redhat-upgrade-cargo
  • redhat-upgrade-cargo-debuginfo
  • redhat-upgrade-cargo-doc
  • redhat-upgrade-clippy
  • redhat-upgrade-clippy-debuginfo
  • redhat-upgrade-rls
  • redhat-upgrade-rls-debuginfo
  • redhat-upgrade-rust
  • redhat-upgrade-rust-analysis
  • redhat-upgrade-rust-debugger-common
  • redhat-upgrade-rust-debuginfo
  • redhat-upgrade-rust-debugsource
  • redhat-upgrade-rust-doc
  • redhat-upgrade-rust-gdb
  • redhat-upgrade-rust-lldb
  • redhat-upgrade-rust-src
  • redhat-upgrade-rust-std-static
  • redhat-upgrade-rust-toolset
  • redhat-upgrade-rustfmt
  • redhat-upgrade-rustfmt-debuginfo

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;