Advisory

ALSA-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

Not rated by the source.

Dates

Published
2021-11-10 08:37 UTC
Modified
2026-10-29 11:01 UTC

Affected packages and fixes

15 affected packages; all RPM packages (rpm) · AlmaLinux 8; affected: earlier versions
PackageFix
cargosudo dnf upgrade cargo-1.54.0-3.module_el8.5.0+2599+d655d86c
cargo-docsudo dnf upgrade cargo-doc-1.54.0-3.module_el8.5.0+2599+d655d86c
clippysudo dnf upgrade clippy-1.54.0-3.module_el8.5.0+2599+d655d86c
rlssudo dnf upgrade rls-1.54.0-3.module_el8.5.0+2599+d655d86c
rustsudo dnf upgrade rust-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-analysissudo dnf upgrade rust-analysis-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-debugger-commonsudo dnf upgrade rust-debugger-common-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-docsudo dnf upgrade rust-doc-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-gdbsudo dnf upgrade rust-gdb-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-lldbsudo dnf upgrade rust-lldb-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-srcsudo dnf upgrade rust-src-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-std-staticsudo dnf upgrade rust-std-static-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-std-static-wasm32-unknown-unknownsudo dnf upgrade rust-std-static-wasm32-unknown-unknown-1.54.0-3.module_el8.5.0+2599+d655d86c
rust-toolsetsudo dnf upgrade rust-toolset-1.54.0-1.module_el8.5.0+2599+d655d86c
rustfmtsudo dnf upgrade rustfmt-1.54.0-3.module_el8.5.0+2599+d655d86c

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: AlmaLinux OSV database · MIT

Sources & licences