An issue was discovered in the Bidirectional Algorithm in the Unicode Specification…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 29 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-94.
Summary
An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic than the logical ordering of tokens ingested by compilers and interpreters. Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted vulnerabilities are introduced invisibly to human reviewers. NOTE: the Unicode Consortium offers the following alternative approach to presenting this concern. An issue is noted in the nature of international text that can affect applications that implement support for The Unicode Standard and the Unicode Bidirectional Algorithm (all versions). Due to text display behavior when text includes left-to-right and right-to-left characters, the visual order of tokens may be different from their logical order. Additionally, control characters needed to fully support the requirements of bidirectional text can further obfuscate the logical order of tokens. Unless mitigated, an adversary could craft source code such that the ordering of tokens perceived by human reviewers does not match what will be processed by a compiler/interpreter/etc. The Unicode Consortium has documented this class of vulnerability in its document, Unicode Technical Report #36, Unicode Security Considerations. The Unicode Consortium also provides guidance on mitigations for this class of issues in Unicode Technical Standard #39, Unicode Security Mechanisms, and in Unicode Standard Annex #31, Unicode Identifier and Pattern Syntax. Also, the BIDI specification allows applications to tailor the implementation in ways that can mitigate misleading visual reordering in program text; see HL4 in Unicode Standard Annex #9, Unicode Bidirectional Algorithm.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:unicode:unicode:*:*:*:*:*:*:*:* | before 14.0.0 | Vulnerable | Unicode |
| cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | 33 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:a:starwindsoftware:starwind_virtual_san:v8r13:14398:*:*:*:*:*:* | v8r13 14398 | Vulnerable | Starwindsoftware |
- cpe:2.3:a:unicode:unicode:*:*:*:*:*:*:*:* Versions before 14.0.0 Vulnerable ·Unicode
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:a:starwindsoftware:starwind_virtual_san:v8r13:14398:*:*:*:*:*:* Versions v8r13 14398 Vulnerable ·Starwindsoftware
Remediation
Red Hat 32 advisories
- RHSA-2021:4743 Released 2021-11-18 · Red Hat rating Moderatellvm-toolset:rhel8 security update
- Red Hat Enterprise Linux AppStream (v. 8) clang-12.0.1-4.module+el8.5.0+13246+cefb5d4c.aarch64::llvm-toolset:rhel8, clang-12.0.1-4.module+el8.5.0+13246+cefb5d4c.i686::llvm-toolset:rhel8, clang-12.0.1-4.module+el8.5.0+13246+cefb5d4c.ppc64le::llvm-toolset:rhel8 +47
- RHSA-2021:4730 Released 2021-11-18 · Red Hat rating Moderatedevtoolset-11-binutils security update
- Red Hat Software Collections for RHEL Workstation(v. 7) devtoolset-11-binutils-2.36.1-1.el7.1, devtoolset-11-binutils-devel-2.36.1-1.el7.1
- Red Hat Software Collections for RHEL(v. 7) devtoolset-11-binutils-2.36.1-1.el7.1, devtoolset-11-binutils-devel-2.36.1-1.el7.1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) devtoolset-11-binutils-2.36.1-1.el7.1, devtoolset-11-binutils-devel-2.36.1-1.el7.1
- RHSA-2021:4729 Released 2021-11-18 · Red Hat rating Moderatedevtoolset-11-annobin security update
- Red Hat Software Collections for RHEL Workstation(v. 7) devtoolset-11-annobin-9.82-1.el7.1, devtoolset-11-annobin-annocheck-9.82-1.el7.1, devtoolset-11-annobin-docs-9.82-1.el7.1 +1
- Red Hat Software Collections for RHEL(v. 7) devtoolset-11-annobin-9.82-1.el7.1, devtoolset-11-annobin-annocheck-9.82-1.el7.1, devtoolset-11-annobin-docs-9.82-1.el7.1 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) devtoolset-11-annobin-9.82-1.el7.1, devtoolset-11-annobin-annocheck-9.82-1.el7.1, devtoolset-11-annobin-docs-9.82-1.el7.1 +1
Show 29 more Red Hat advisories
- RHSA-2021:4724 Released 2021-11-17 · Red Hat rating Moderatedevtoolset-10-annobin security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) devtoolset-10-annobin-9.23-4.el7.1, devtoolset-10-annobin-annocheck-9.23-4.el7.1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) devtoolset-10-annobin-9.23-4.el7.1, devtoolset-10-annobin-annocheck-9.23-4.el7.1
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) devtoolset-10-annobin-9.23-4.el7.1, devtoolset-10-annobin-annocheck-9.23-4.el7.1
- RHSA-2021:4723 Released 2021-11-17 · Red Hat rating Moderatedevtoolset-10-binutils security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) devtoolset-10-binutils-2.35-5.el7.3, devtoolset-10-binutils-devel-2.35-5.el7.3
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) devtoolset-10-binutils-2.35-5.el7.3, devtoolset-10-binutils-devel-2.35-5.el7.3
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) devtoolset-10-binutils-2.35-5.el7.3, devtoolset-10-binutils-devel-2.35-5.el7.3
- RHSA-2021:4694 Released 2021-11-16 · Red Hat rating Moderaterust-toolset-1.54-rust security update
- Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) rust-toolset-1.54-cargo-1.54.0-4.el7_9, rust-toolset-1.54-cargo-doc-1.54.0-4.el7_9, rust-toolset-1.54-clippy-1.54.0-4.el7_9 +10
- RHSA-2021:4669 Released 2021-11-15 · Red Hat rating Moderatedevtoolset-11-gcc security update
- Red Hat Software Collections for RHEL Workstation(v. 7) devtoolset-11-gcc-11.2.1-1.2.el7, devtoolset-11-gcc-c++-11.2.1-1.2.el7, devtoolset-11-gcc-gdb-plugin-11.2.1-1.2.el7 +18
- Red Hat Software Collections for RHEL(v. 7) devtoolset-11-gcc-11.2.1-1.2.el7, devtoolset-11-gcc-c++-11.2.1-1.2.el7, devtoolset-11-gcc-gdb-plugin-11.2.1-1.2.el7 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) devtoolset-11-gcc-11.2.1-1.2.el7, devtoolset-11-gcc-c++-11.2.1-1.2.el7, devtoolset-11-gcc-gdb-plugin-11.2.1-1.2.el7 +18
- RHSA-2021:4649 Released 2021-11-15 · Red Hat rating Moderategcc-toolset-10-binutils security update
- Red Hat Enterprise Linux AppStream (v. 8) gcc-toolset-10-binutils-2.35-8.el8_5.6, gcc-toolset-10-binutils-devel-2.35-8.el8_5.6
- RHSA-2021:4590 Released 2021-11-10 · Red Hat rating Moderaterust-toolset:rhel8 security update
- Red Hat Enterprise Linux AppStream (v. 8) cargo-1.54.0-3.module+el8.5.0+13074+d655d86c.aarch64::rust-toolset:rhel8, cargo-1.54.0-3.module+el8.5.0+13074+d655d86c.ppc64le::rust-toolset:rhel8, cargo-1.54.0-3.module+el8.5.0+13074+d655d86c.s390x::rust-toolset:rhel8 +43
- RHSA-2021:4596 Released 2021-11-10 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) binutils-devel-2.30-93.el8_4.2
- Red Hat Enterprise Linux BaseOS EUS (v.8.4) binutils-2.30-93.el8_4.2
- RHSA-2021:4598 Released 2021-11-10 · Red Hat rating Moderateannobin security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) annobin-9.50-1.el8_4.1, annobin-annocheck-9.50-1.el8_4.1
- RHSA-2021:4602 Released 2021-11-10 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.1) binutils-devel-2.30-58.el8_1.3
- Red Hat Enterprise Linux BaseOS EUS (v. 8.1) binutils-2.30-58.el8_1.3
- RHSA-2021:4587 Released 2021-11-10 · Red Hat rating Moderategcc security update
- Red Hat CodeReady Linux Builder (v. 8) gcc-plugin-devel-8.5.0-4.el8_5, libstdc++-static-8.5.0-4.el8_5
- Red Hat Enterprise Linux AppStream (v. 8) cpp-8.5.0-4.el8_5, gcc-8.5.0-4.el8_5, gcc-c++-8.5.0-4.el8_5 +7
- Red Hat Enterprise Linux BaseOS (v. 8) gcc-8.5.0-4.el8_5, libasan-8.5.0-4.el8_5, libatomic-8.5.0-4.el8_5 +11
- RHSA-2021:4595 Released 2021-11-10 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux AppStream (v. 8) binutils-devel-2.30-108.el8_5.1
- Red Hat Enterprise Linux BaseOS (v. 8) binutils-2.30-108.el8_5.1
- RHSA-2021:4591 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-11-annobin security update
- Red Hat Enterprise Linux AppStream (v. 8) gcc-toolset-11-annobin-9.85-1.el8_5.1, gcc-toolset-11-annobin-annocheck-9.85-1.el8_5.1, gcc-toolset-11-annobin-docs-9.85-1.el8_5.1 +1
- RHSA-2021:4601 Released 2021-11-10 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.2) binutils-devel-2.30-73.el8_2.1
- Red Hat Enterprise Linux BaseOS EUS (v. 8.2) binutils-2.30-73.el8_2.1
- RHSA-2021:4592 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-10-annobin security update
- Red Hat Enterprise Linux AppStream (v. 8) gcc-toolset-10-annobin-9.29-1.el8_5.2
- RHSA-2021:4593 Released 2021-11-10 · Red Hat rating Moderateannobin security update
- Red Hat Enterprise Linux AppStream (v. 8) annobin-9.72-1.el8_5.2, annobin-annocheck-9.72-1.el8_5.2
- RHSA-2021:4594 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-11-binutils security update
- Red Hat Enterprise Linux AppStream (v. 8) gcc-toolset-11-binutils-2.36.1-1.el8_5.1, gcc-toolset-11-binutils-devel-2.36.1-1.el8_5.1
- RHSA-2021:4600 Released 2021-11-10 · Red Hat rating Moderateannobin security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.2) annobin-8.90-1.el8_2.1
- RHSA-2021:4586 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-11-gcc security update
- Red Hat Enterprise Linux AppStream (v. 8) gcc-toolset-11-gcc-11.2.1-1.2.el8_5, gcc-toolset-11-gcc-c++-11.2.1-1.2.el8_5, gcc-toolset-11-gcc-gdb-plugin-11.2.1-1.2.el8_5 +15
- RHSA-2021:4589 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-10-annobin security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) gcc-toolset-10-annobin-9.29-1.el8_4.1
- RHSA-2021:4599 Released 2021-11-10 · Red Hat rating Moderateannobin security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.1) annobin-8.78-1.el8_1.1
- RHSA-2021:4585 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-10-gcc security update
- Red Hat CodeReady Linux Builder (v. 8) gcc-toolset-10-gcc-plugin-devel-10.3.1-1.2.el8_5
- Red Hat Enterprise Linux AppStream (v. 8) gcc-toolset-10-gcc-10.3.1-1.2.el8_5, gcc-toolset-10-gcc-c++-10.3.1-1.2.el8_5, gcc-toolset-10-gcc-gdb-plugin-10.3.1-1.2.el8_5 +11
- RHSA-2021:4588 Released 2021-11-10 · Red Hat rating Moderategcc-toolset-10-binutils security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) gcc-toolset-10-binutils-2.35-8.el8_4.5, gcc-toolset-10-binutils-devel-2.35-8.el8_4.5
- RHSA-2021:4033 Released 2021-11-01 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux Client (v. 7) binutils-2.27-44.base.el7_9.1
- Red Hat Enterprise Linux Client Optional (v. 7) binutils-devel-2.27-44.base.el7_9.1
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) binutils-devel-2.27-44.base.el7_9.1
- Red Hat Enterprise Linux Server (v. 7) binutils-2.27-44.base.el7_9.1, binutils-devel-2.27-44.base.el7_9.1, binutils-devel-2.27-44.base.el7_9.1.ppc
- Red Hat Enterprise Linux Workstation (v. 7) binutils-2.27-44.base.el7_9.1, binutils-devel-2.27-44.base.el7_9.1
- RHSA-2021:4034 Released 2021-11-01 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux Server AUS (v. 7.7) binutils-2.27-41.base.el7_7.4, binutils-devel-2.27-41.base.el7_7.4
- Red Hat Enterprise Linux Server E4S (v. 7.7) binutils-2.27-41.base.el7_7.4, binutils-devel-2.27-41.base.el7_7.4
- Red Hat Enterprise Linux Server TUS (v. 7.7) binutils-2.27-41.base.el7_7.4, binutils-devel-2.27-41.base.el7_7.4
- RHSA-2021:4035 Released 2021-11-01 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux Server AUS (v. 7.6) binutils-2.27-34.base.el7_6.4, binutils-devel-2.27-34.base.el7_6.4
- Red Hat Enterprise Linux Server E4S (v. 7.6) binutils-2.27-34.base.el7_6.4, binutils-devel-2.27-34.base.el7_6.4
- Red Hat Enterprise Linux Server TUS (v. 7.6) binutils-2.27-34.base.el7_6.4, binutils-devel-2.27-34.base.el7_6.4
- RHSA-2021:4039 Released 2021-11-01 · Red Hat rating Moderatedevtoolset-10-gcc security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) devtoolset-10-gcc-10.2.1-11.2.el7, devtoolset-10-gcc-c++-10.2.1-11.2.el7, devtoolset-10-gcc-gdb-plugin-10.2.1-11.2.el7 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) devtoolset-10-gcc-10.2.1-11.2.el7, devtoolset-10-gcc-c++-10.2.1-11.2.el7, devtoolset-10-gcc-gdb-plugin-10.2.1-11.2.el7 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) devtoolset-10-gcc-10.2.1-11.2.el7, devtoolset-10-gcc-c++-10.2.1-11.2.el7, devtoolset-10-gcc-gdb-plugin-10.2.1-11.2.el7 +18
- RHSA-2021:4036 Released 2021-11-01 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux Server AUS (v. 7.4) binutils-2.25.1-32.base.el7_4.5, binutils-devel-2.25.1-32.base.el7_4.5
- RHSA-2021:4038 Released 2021-11-01 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux Server AUS (v. 7.2) binutils-2.23.52.0.1-55.el7_2.4, binutils-devel-2.23.52.0.1-55.el7_2.4
- RHSA-2021:4037 Released 2021-11-01 · Red Hat rating Moderatebinutils security update
- Red Hat Enterprise Linux Server AUS (v. 7.3) binutils-2.25.1-22.base.el7_3.3, binutils-devel-2.25.1-22.base.el7_3.3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2021:4585, RHSA-2021:4587 |
| Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2021:4694 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:4585, RHSA-2021:4586, RHSA-2021:4587, RHSA-2021:4590, RHSA-2021:4591, RHSA-2021:4592, RHSA-2021:4593, RHSA-2021:4594, RHSA-2021:4595, RHSA-2021:4649, RHSA-2021:4743 |
| Red Hat Enterprise Linux AppStream EUS (v. 8.1) | Fixed | RHSA-2021:4599, RHSA-2021:4602 |
| Red Hat Enterprise Linux AppStream EUS (v. 8.2) | Fixed | RHSA-2021:4600, RHSA-2021:4601 |
| Red Hat Enterprise Linux AppStream EUS (v.8.4) | Fixed | RHSA-2021:4588, RHSA-2021:4589, RHSA-2021:4596, RHSA-2021:4598 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2021:4587, RHSA-2021:4595 |
| Red Hat Enterprise Linux BaseOS EUS (v. 8.1) | Fixed | RHSA-2021:4602 |
| Red Hat Enterprise Linux BaseOS EUS (v. 8.2) | Fixed | RHSA-2021:4601 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.4) | Fixed | RHSA-2021:4596 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2021:4033 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2021:4033 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2021:4033 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2021:4033 |
| Red Hat Enterprise Linux Server AUS (v. 7.2) | Fixed | RHSA-2021:4038 |
| Red Hat Enterprise Linux Server AUS (v. 7.3) | Fixed | RHSA-2021:4037 |
| Red Hat Enterprise Linux Server AUS (v. 7.4) | Fixed | RHSA-2021:4036 |
| Red Hat Enterprise Linux Server AUS (v. 7.6) | Fixed | RHSA-2021:4035 |
| Red Hat Enterprise Linux Server AUS (v. 7.7) | Fixed | RHSA-2021:4034 |
| Red Hat Enterprise Linux Server E4S (v. 7.6) | Fixed | RHSA-2021:4035 |
| Red Hat Enterprise Linux Server E4S (v. 7.7) | Fixed | RHSA-2021:4034 |
| Red Hat Enterprise Linux Server TUS (v. 7.6) | Fixed | RHSA-2021:4035 |
| Red Hat Enterprise Linux Server TUS (v. 7.7) | Fixed | RHSA-2021:4034 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2021:4033 |
| Red Hat Software Collections for RHEL Workstation(v. 7) | Fixed | RHSA-2021:4669, RHSA-2021:4729, RHSA-2021:4730 |
| Red Hat Software Collections for RHEL(v. 7) | Fixed | RHSA-2021:4669, RHSA-2021:4729, RHSA-2021:4730 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2021:4039, RHSA-2021:4723, RHSA-2021:4724 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) | Fixed | RHSA-2021:4039, RHSA-2021:4669, RHSA-2021:4723, RHSA-2021:4724, RHSA-2021:4729, RHSA-2021:4730 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2021:4039, RHSA-2021:4723, RHSA-2021:4724 |
Not affected: 1 product
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-42574
References
Exploit 4
Advisory 13
- http://www.unicode.org/versions/Unicode14.0.0/
- [oss-security] 20211101 Trojan Source Attacks
- [oss-security] 20211102 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code
- FEDORA-2021-0578e23912
- FEDORA-2021-7ad3a01f6a
- VU#999008
- FEDORA-2021-443139f67c
- https://www.unicode.org/reports/tr36/
- https://www.unicode.org/reports/tr39/
- https://www.unicode.org/reports/tr31/
- https://www.unicode.org/reports/tr9/tr9-44.html#HL4
- https://www.starwindsoftware.com/security/sw-20220804-0002/
- GLSA-202210-09
Sources
- CVE-2021-42574 · CVE Program
- CVE-2021-42574 · NVD
- FIRST EPSS
- CVE-2021-42574 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences