Advisory

RLSA-2021:4590

Also known as: CVE-2021-42574

Summary

Moderate: rust-toolset:rhel8 security update

Details

Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and required libraries.

Security Fix(es):

  • Developer environment: Unicode's bidirectional (BiDi) override characters can cause trojan source attacks (CVE-2021-42574)

The following changes were introduced in rust in order to facilitate detection of BiDi Unicode characters:

Rust introduces two new lints to detect and reject code containing the affected codepoints. These new deny-by-default lints detect affected codepoints in string literals and comments. The lints will prevent source code file containing these codepoints from being compiled. If your code has legitimate uses for the codepoints we recommend replacing them with the related escape sequence. The error messages will suggest the right escapes to use.

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Severity

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

Dates

Published
2021-11-10 08:37 UTC
Modified
2026-02-05 03:15 UTC

Affected packages and fixes

rust

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 0:1.54.0-3.module+el8.5.0+712+d335422a (ecosystem)

Fixed versions

0:1.54.0-3.module+el8.5.0+712+d335422a

Fix

  • Fixed version 0:1.54.0-3.module+el8.5.0+712+d335422a
    sudo dnf upgrade rust-0:1.54.0-3.module+el8.5.0+712+d335422a

rust-toolset

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 0:1.54.0-1.module+el8.5.0+678+cf7bc64b (ecosystem)

Fixed versions

0:1.54.0-1.module+el8.5.0+678+cf7bc64b

Fix

  • Fixed version 0:1.54.0-1.module+el8.5.0+678+cf7bc64b
    sudo dnf upgrade rust-toolset-0:1.54.0-1.module+el8.5.0+678+cf7bc64b

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: Rocky Linux errata (Apollo)

Rocky Linux errata, Rocky Enterprise Software Foundation.

Sources & licences