{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2020-36317","published":"2021-04-11T20:15:12.390000Z","last_modified":"2026-06-17T03:15:17.623000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-787"],"cpes":[{"criteria":"cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*","part":"a","vendor":"rust-lang","product":"rust","version_end_excluding":"1.49.0"}],"cpes_truncated":false,"vendors":["rust-lang"],"products":["rust-lang/rust"],"epss":{"score":0.01496,"percentile":0.7451,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2020-36317/","html_en":"/en/cve/CVE-2020-36317/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-36317","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-36317"},"untrusted":{"vendor_name":"Rust-lang","product_name":"Rust","desc_en":"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":[],"references":[{"url":"https://github.com/rust-lang/rust/issues/78498","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/rust-lang/rust/pull/78499","tags":["Patch","Third Party Advisory"]}]}}