CVE-2021-42574 in Fedoraproject Fedora and 2 more products
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. Adver...
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Fedoraproject | Fedora | 33 34 35 |
| Starwindsoftware | Starwind Virtual San | v8r13 |
| Unicode | Unicode | < 14.0.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-42574 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-073686-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| Published | 2021-11-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in the Bidirectional Algorithm of the Unicode Specification through version 14.0 allows for the visual reordering of characters using control sequences, enabling the creation of source code that appears different from its logical structure as interpreted by compilers and interpreters.
Adversaries can exploit this vulnerability to craft malicious source code that, when compiled or interpreted, executes unintended logic. This can lead to security issues such as code injection or unauthorized access, as the actual behavior of the code differs from what is visually presented.
Questions
What is CVE-2021-42574?
A vulnerability in the Bidirectional Algorithm of the Unicode Specification through version 14.0 allows for the visual reordering of characters using control sequences, enabling the creation of source code that appears different from its logical structure as interpreted by compilers and interpreters.
What is the CVSS score for CVE-2021-42574?
CVE-2021-42574 has CVSS 8.3 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H. EPSS: 12.9%.
Is CVE-2021-42574 actively exploited?
No confirmed active exploitation of CVE-2021-42574 as of 2026-09-25.
How do I remediate CVE-2021-42574?
Priority: HIGH. Advisory: http://www.unicode.org/versions/Unicode14.0.0/ PSIRT: [email protected]
What systems are affected by CVE-2021-42574?
CVE-2021-42574 affects Fedoraproject Fedora; Starwindsoftware Starwind Virtual San; Unicode Unicode.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.