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
| Package | Fix |
|---|---|
| cargo | sudo dnf upgrade cargo-1.54.0-3.module_el8.5.0+2599+d655d86c |
| cargo-doc | sudo dnf upgrade cargo-doc-1.54.0-3.module_el8.5.0+2599+d655d86c |
| clippy | sudo dnf upgrade clippy-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rls | sudo dnf upgrade rls-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust | sudo dnf upgrade rust-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-analysis | sudo dnf upgrade rust-analysis-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-debugger-common | sudo dnf upgrade rust-debugger-common-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-doc | sudo dnf upgrade rust-doc-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-gdb | sudo dnf upgrade rust-gdb-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-lldb | sudo dnf upgrade rust-lldb-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-src | sudo dnf upgrade rust-src-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-std-static | sudo dnf upgrade rust-std-static-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-std-static-wasm32-unknown-unknown | sudo dnf upgrade rust-std-static-wasm32-unknown-unknown-1.54.0-3.module_el8.5.0+2599+d655d86c |
| rust-toolset | sudo dnf upgrade rust-toolset-1.54.0-1.module_el8.5.0+2599+d655d86c |
| rustfmt | sudo 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
Links
Source
Source: AlmaLinux OSV database · MIT