Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2020-36317 Details

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://github.com/rust-lang/rust/issues/78498 CVEExploitIssue TrackingThird Party Advisory
https://github.com/rust-lang/rust/pull/78499 CVEPatchThird Party Advisory
https://github.com/rust-lang/rust/issues/78498 [email protected]ExploitIssue TrackingThird Party Advisory
https://github.com/rust-lang/rust/pull/78499 [email protected]PatchThird Party Advisory

Weakness Enumeration

CWE-IDCWE NameSource
CWE-787Out-of-bounds Write[email protected]

Affected Products

ProductVersions
rust-lang rust
< 1.49.0

CPE

  • cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

5 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2020-36317
NVD Published Date:
Apr 11, 2021
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2020-36317 Details - Not Deferred