Advisory

UBUNTU-CVE-2020-36317

Also known as: CVE-2020-36317

Summary

The record has no summary.

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

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2021-04-11 20:15 UTC
Modified
2026-04-22 12:40 UTC

Affected packages and fixes

rustc

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2 (ecosystem)

Fixed versions

1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2

Fix

  • Fixed version 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences