CVE-2020-36317

low
Published — · Modified —
CVSS v3
CVSS v2
VIR risk
2.5

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2020-36317

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2021:1935

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2020-36317.html

OS impact

OSVersionStatusFixed in
arch archfixed1:1.49.0-1
suse slesaffected
rockylinux rocky8fixed
debian debianbookwormfixed1.53.0+dfsg1-1
debian debianbullseyeaffected
debian debianforkyfixed1.53.0+dfsg1-1
debian debiansidfixed1.53.0+dfsg1-1
debian debiantrixiefixed1.53.0+dfsg1-1

References

Verify integrity in audit chain (admin only). AS-IS.