{ "schema_version": "1.4.0", "id": "GHSA-jc5q-p9cv-j8pj", "modified": "2022-06-29T00:00:33Z", "published": "2022-05-24T17:47:04Z", "aliases": [ "CVE-2020-36317" ], "details": "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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" } ], "affected": [], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-36317" }, { "type": "WEB", "url": "https://github.com/rust-lang/rust/issues/78498" }, { "type": "WEB", "url": "https://github.com/rust-lang/rust/pull/78499" } ], "database_specific": { "cwe_ids": [ "CWE-119" ], "severity": "HIGH", "github_reviewed": false, "github_reviewed_at": null, "nvd_published_at": "2021-04-11T20:15:00Z" } }