CVE-2020-36317
Reported by mitre · Published April 11, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rust | rust-lang | 1.49.0 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| arch | rust | 0 |
Timeline
- Apr 11, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 4, 2026 Security Advisory
- Aug 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-36317
vulnetix vdb fixes CVE-2020-36317
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-36317/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart