CVE-2020-36317

HIGH
7.5
CVSS Score
Published: April 11, 2021 at 07:06 PM UTC
Updated: June 17, 2026 at 03:15 AM UTC
1 product affected across 1 vendorRust

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.49.0
Affected range stops below 1.49.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

x_refsource_MISCExploitIssue TrackingThird Party Advisory
https://github.com/rust-lang/rust/issues/78498
x_refsource_MISCPatchThird Party Advisory
https://github.com/rust-lang/rust/pull/78499

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card