Home / Unicode / Unicode / CVE-2021-42574
CVE-2021-42574: is it exploited, and which versions of Unicode are affected and fixed?
CVE-2021-42574 is a code injection (remote code execution) vulnerability in Unicode. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: unicode before 14.0.0, fedora 33, fedora 34 and 2 more (NVD). Fixed in 14.0.0 (NVD). Severity: High (8.3, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:53 UTC.
Disputed: a party (often the vendor) disputes that this is a vulnerability. The record is kept as published.
What is CVE-2021-42574?
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.
From the CVE record by mitre, last updated August 4, 2024, 03:38 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| unicode | unicode | before 14.0.0 | application |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 35 | operating system |
| starwindsoftware | starwind virtual san | v8r13 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:09 UTC.
How severe is CVE-2021-42574?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H | NVD |
| Medium 5.1 | CVSS 2.0 | AV:N/AC:H/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-42574 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, June 11, 2024)
- EPSS
- 12.9% probability of exploitation activity in the next 30 days, percentile 96.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- http://www.unicode.org/versions/Unicode14.0.0/
- https://trojansource.codes
- [oss-security] 20211101 CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code mailing-list
- [oss-security] 20211101 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code mailing-list
- [oss-security] 20211101 Trojan Source Attacks mailing-list
- [oss-security] 20211102 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code mailing-list
- [oss-security] 20211102 Re: Trojan Source Attacks mailing-list
- FEDORA-2021-0578e23912 vendor-advisory
- FEDORA-2021-7ad3a01f6a vendor-advisory
- VU#999008 third-party-advisory
- FEDORA-2021-443139f67c vendor-advisory
- https://www.scyon.nl/post/trojans-in-your-source-code
- 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 vendor-advisory
When was it published, and where is the official record?
- Reserved
- October 18, 2021
- Published
- November 1, 2021, 00:00 UTC
- CVE record updated
- August 4, 2024, 03:38 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 04:09 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:53 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Unicode?
- Nov 1, 2021CVE-2021-42694 Unicode: code injection (remote code execution) disputed
Questions about CVE-2021-42574
Is CVE-2021-42574 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 12.9% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Unicode are affected by CVE-2021-42574?
unicode before 14.0.0, fedora 33, fedora 34, fedora 35 and starwind virtual san v8r13, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-42574?
14.0.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-42574?
High (8.3, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-42574?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.