Moderate: rust-toolset:rhel8 security update

cargo Updated 02 Oct 2025

Summary

10/11/2021
N/A
Yes i
Unrated
Not published

ALSA-2021:4590: Moderate: rust-toolset:rhel8 security update. Affects cargo versions < 1.54.0-3.module_el8.5.0+2599+d655d86c. Fixed in 1.54.0-3.module_el8.5.0+2599+d655d86c. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Rust Toolset is a collection of tools and libraries that provide support for the Rust programming language. It includes the Rust compiler (rustc), the cargo build tool and dependency manager, and various other components. These tools are widely used by developers for building and managing Rust projects.

Vulnerability Detail

The vulnerability identified in the Rust Toolset package is related to Unicode's bidirectional (BiDi) override characters. These characters can be used in a malicious manner to perform trojan source attacks. By manipulating the BiDi override characters, an attacker can inject malicious code into the source code, potentially leading to unauthorized access, data breaches, or other security issues. This vulnerability has been assigned the CVE identifier CVE-2021-42574.

How To Fix

Minimum fixed version

1.54.0-3.module_el8.5.0+2599+d655d86c

This is the first release that contains the fix.

sudo dnf update cargo

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, developers can mitigate the risk by ensuring they are using the latest version of the Rust Toolset package and following best practices for secure coding.

Conclusion

In conclusion, the Rust Toolset package is affected by a moderate security vulnerability related to Unicode's bidirectional override characters. To mitigate the risk, it is recommended to update the package to the latest version and replace any occurrences of the affected characters with the appropriate escape sequences. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for cargo →

Share this vulnerability

FAQ

Rust Toolset is a collection of tools and libraries that support the Rust programming language. It includes the Rust compiler, the cargo build tool, and various other components.

This vulnerability can allow an attacker to inject malicious code into the source code, potentially leading to unauthorized access, data breaches, or other security issues.

To fix this vulnerability, update the Rust Toolset package to version 1.54.0-3.module_el8.5.0+2599+d655d86c or later and replace any occurrences of the affected BiDi override characters with the appropriate escape sequences.

There are no specific workarounds mentioned for this vulnerability. However, developers can mitigate the risk by using the latest version of the Rust Toolset package and following secure coding practices.

For more information about this vulnerability, including the impact, CVSS score, and related details, refer to the CVE page: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574

Related vulnerabilities

Recent vulnerabilities recorded for cargo.

How To Fix

Minimum fixed version

1.54.0-3.module_el8.5.0+2599+d655d86c

This is the first release that contains the fix.

sudo dnf update cargo

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback