Vulnerability in Rust Package (Alpine:v3.19) - CVE-2021-42574

rust Updated 02 Oct 2025

Summary

01/11/2021
N/A
Yes i
High
8.3

CVE-2021-42574: An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. Affects rust versions < 1.56.1-r0. Fixed in 1.56.1-r0. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Rust package is a programming language that focuses on performance, reliability, and productivity. It is widely used for developing system software, web applications, and more. The Alpine:v3.19 ecosystem is affected by a vulnerability known as CVE-2021-42574.

Vulnerability Detail

CVE-2021-42574 is a vulnerability in the Bidirectional Algorithm in the Unicode Specification. It allows for the visual reordering of characters through control sequences, which can be exploited to create source code that appears differently to human reviewers compared to how it is processed by compilers and interpreters. This can lead to the introduction of hidden vulnerabilities in code. Adversaries can leverage this vulnerability to encode source code in a way that introduces targeted vulnerabilities without being detected by human reviewers. The Unicode Consortium has provided guidance on mitigating this vulnerability in Unicode Technical Standard #39 and Unicode Standard Annex #31.

How To Fix

Minimum fixed version

1.56.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade rust

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.

Conclusion

In conclusion, the Rust package in the Alpine:v3.19 ecosystem is affected by a vulnerability (CVE-2021-42574) that allows for the visual reordering of characters in source code. This can lead to the introduction of hidden vulnerabilities. It is recommended to update the Rust package to version 1.56.1-r0 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for rust →

Share this vulnerability

FAQ

This vulnerability allows adversaries to introduce hidden vulnerabilities in source code, which can be exploited to compromise the security and integrity of the affected software.

Yes, this vulnerability can be exploited remotely if the affected software is exposed to the internet.

There are no known instances of this vulnerability being exploited at the moment.

Yes, the CVSS score for this vulnerability is 8.3.

You can find more information about this vulnerability in the CVE-2021-42574 entry on the Vulert website.

Related vulnerabilities

Recent vulnerabilities recorded for rust.

How To Fix

Minimum fixed version

1.56.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade rust

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