CVE-2020-36317
Last modified
CVE-2020-36317 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.51% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Rust-Lang | Rust | < 1.49.0 |
References
- https://github.com/rust-lang/rust/issues/78498Exploit, Issue Tracking, Third Party Advisory
- https://github.com/rust-lang/rust/pull/78499Patch, Third Party Advisory
- https://github.com/rust-lang/rust/issues/78498Exploit, Issue Tracking, Third Party Advisory
- https://github.com/rust-lang/rust/pull/78499Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-36317?
How severe is CVE-2020-36317?
How do I fix CVE-2020-36317?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-36311An issue was discovered in the Linux kernel before 5.9. arch…5.5
- CVE-2020-36312An issue was discovered in the Linux kernel before 5.8.10. v…5.5
- CVE-2020-36313An issue was discovered in the Linux kernel before 5.7. The …7.8
- CVE-2020-36314fr-archive-libarchive.c in GNOME file-roller through 3.38.0,…3.9
- CVE-2020-36315In RELIC before 2020-08-01, RSA PKCS#1 v1.5 signature forger…5.3
- CVE-2020-36316In RELIC before 2021-04-03, there is a buffer overflow in PK…5.5
- CVE-2020-36318In the standard library in Rust before 1.49.0, VecDeque::mak…9.8
- CVE-2020-36319Insecure configuration of default ObjectMapper in com.vaadin…6.5
- CVE-2020-3632u'Incorrect validation of ring context fetched from host mem…7.8
- CVE-2020-36320Unsafe validation RegEx in EmailValidator class in com.vaadi…7.5
- CVE-2020-36321Improper URL validation in development mode handler in com.v…7.5
- CVE-2020-36322An issue was discovered in the FUSE filesystem implementatio…5.5
Are you affected by CVE-2020-36317?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
