CVE-2020-36317

Publication date 11 April 2021

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
rustc 24.10 oracular Not in release
24.04 LTS noble
Not affected
23.10 mantic
Not affected
23.04 lunar
Not affected
22.10 kinetic Ignored end of life, was needs-triage
22.04 LTS jammy
Not affected
21.10 impish Ignored end of life
21.04 hirsute Ignored end of life
20.10 groovy Ignored end of life
20.04 LTS focal
Fixed 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2
18.04 LTS bionic
Not affected
16.04 LTS xenial
Vulnerable
14.04 LTS trusty Ignored end of ESM support, was needed

Notes


litios

on trusty, the vulnerable code is in src/liballoc/string.rs.

Severity score breakdown

Parameter Value
Base score 7.5 · High
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H