CVE-2020-36317: High severity rust vulnerability

Published Apr 11, 2021
·
Updated

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 Software

1 affected component
rust-lang Rust<1.49.0

Event History

Apr 11, 2021
CVE Published
via MITRE·07:06 PM
Data Sourced
via MITRE·07:06 PM
Description

Frequently Asked Questions

1

What is the vulnerability ID of this bug in Rust?

The vulnerability ID is CVE-2020-36317.

2

What is the severity level of CVE-2020-36317?

The severity level of CVE-2020-36317 is high with a score of 7.5.

3

Which version of Rust is affected by CVE-2020-36317?

Rust versions before 1.49.0 are affected by CVE-2020-36317.

4

What is the nature of the vulnerability in Rust?

The vulnerability in Rust is related to a panic safety problem in the String::retain() function.

5

Are there any official references for CVE-2020-36317?

Yes, you can find more information about CVE-2020-36317 in GitHub issues and pull requests: [Issue #78498](https://github.com/rust-lang/rust/issues/78498) and [Pull Request #78499](https://github.com/rust-lang/rust/pull/78499).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203