Buffer overflow in Rust-lang Rust

CVE-2020-36317

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 ot…

Vulnerability class: Buffer Overflow

EPSS: 0.015 (71.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

  • cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC, Issue Tracking)
  • cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC)

Frequently asked questions

What is CVE-2020-36317?
CVE-2020-36317 is a high-severity vulnerability in Rust-lang Rust, classified under Out-of-bounds Write. CVSS score: 7.5/10. Published 2021-04-11.
How severe is CVE-2020-36317?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2020-36317 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.