7.5
CWE
787
Advisory Published
Updated

CVE-2020-36317

First published: Sun 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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Rust-lang Rust<1.49.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID of this bug in Rust?

    The vulnerability ID is CVE-2020-36317.

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

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

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

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

  • 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.

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203