Vulnerability · Published Apr 11, 2021 · Assigned by mitre

CVE-2020-36317

High 7.5

In plain English

A high-severity security flaw in the rustc package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)1.5%top 25.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rustc1.53.0+dfsg1-1DEBIAN-CVE-2020-36317
Debian:13rustc1.53.0+dfsg1-1DEBIAN-CVE-2020-36317
Debian:14rustc1.53.0+dfsg1-1DEBIAN-CVE-2020-36317
Rocky Linux:8rust0:1.49.0-1.module+el8.4.0+416+259a129aRLSA-2021:1935
Rocky Linux:8rust-toolset0:1.49.0-1.module+el8.4.0+416+259a129aRLSA-2021:1935

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References