CVE-2020-36317

In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem

published April 11, 2021

CVSS
—
EPSS
1%
Percentile
74.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01496 · 74.0th percentile
Published
2021-04-11T19:06Z
EPSS history
Timeline
  • 11 APR 19:06Z
    In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem
    cvelistv5