CVE-2020-36317
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.
Risk Information
Base Score
7.5
MODERATE
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score
Exploitation Probability
0.274
Associated Vulnerability
| Vulnerability | OS Platform |
|---|---|
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update cargo-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update cargo-doc-1.49.0-1.module+el8.4.0+9446+1a463e08.noarch.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update clippy-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rls-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-analysis-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-debugger-common-1.49.0-1.module+el8.4.0+9446+1a463e08.noarch.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-debugsource-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-doc-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-gdb-1.49.0-1.module+el8.4.0+9446+1a463e08.noarch.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-lldb-1.49.0-1.module+el8.4.0+9446+1a463e08.noarch.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-src-1.49.0-1.module+el8.4.0+9446+1a463e08.noarch.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-std-static-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rust-toolset-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
| (RHSA-2021:1935) rust-toolset:rhel8 security, bug fix, and enhancement update rustfmt-1.49.0-1.module+el8.4.0+9446+1a463e08.x86_64.rpm | Linux |
Patch Details
No records foundReferences
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234