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.
CVE-2021-42574
This high-severity CVE scores 8.3 under NVD CVSS v3. EPSS exploit probability: 12.2%, top 4% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.3
- EG Score
- 8.3(medium)
- EG Risk
- 53(Track*)EG Risk 53/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity83% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS
- 95.7%
- KEV
- Not listed
Published
November 1, 2021
Last Modified
November 21, 2024
References (36)
- cve@mitrehttp://www.openwall.com/lists/oss-security/2021/11/01/1
- cve@mitrehttp://www.openwall.com/lists/oss-security/2021/11/01/4
- cve@mitrehttp://www.openwall.com/lists/oss-security/2021/11/01/5
- cve@mitrehttp://www.openwall.com/lists/oss-security/2021/11/01/6
- cve@mitrehttp://www.openwall.com/lists/oss-security/2021/11/02/10
- cve@mitrehttp://www.unicode.org/versions/Unicode14.0.0/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2RG5YTR6ZZOLUV3EUPZEIJR7XHJLVD/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQNTFF24ROHLVPLUOEISBN3F7QM27L4U/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUPA37D57VPTDLSXOOGF4UXUEADOC4PQ/
- cve@mitrehttps://security.gentoo.org/glsa/202210-09
- cve@mitrehttps://trojansource.codes
- cve@mitrehttps://www.kb.cert.org/vuls/id/999008
- cve@mitrehttps://www.scyon.nl/post/trojans-in-your-source-code
- cve@mitrehttps://www.starwindsoftware.com/security/sw-20220804-0002/
- cve@mitrehttps://www.unicode.org/reports/tr31/
Vendor Advisories for CVE-2021-42574(14)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2021:4730Red Hat Product SecurityMedium
Red Hat Security Advisory: devtoolset-11-binutils security update
- RHSA-2021:4729Red Hat Product SecurityMedium
Red Hat Security Advisory: devtoolset-11-annobin security update
- RHSA-2021:4724Red Hat Product SecurityMedium
Red Hat Security Advisory: devtoolset-10-annobin security update
- RHSA-2021:4723Red Hat Product SecurityMedium
Red Hat Security Advisory: devtoolset-10-binutils security update
- RHSA-2021:4694Red Hat Product SecurityMedium
Red Hat Security Advisory: rust-toolset-1.54-rust security update
- RHSA-2021:4669Red Hat Product SecurityMedium
Red Hat Security Advisory: devtoolset-11-gcc security update
- RHSA-2021:4596Red Hat Product SecurityMedium
Red Hat Security Advisory: binutils security update
- RHSA-2021:4602Red Hat Product SecurityMedium
Red Hat Security Advisory: binutils security update
- +6 more
Patch Availability(30)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(17)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2021:4034MODERATE2021-11-01
RHSA-2021:4034 — Moderate
- Red HatRHSA-2021:4035MODERATE2021-11-01
RHSA-2021:4035 — Moderate
- Red HatRHSA-2021:4036MODERATE2021-11-01
RHSA-2021:4036 — Moderate
- Red HatRHSA-2021:4037MODERATE2021-11-01
RHSA-2021:4037 — Moderate
- Red HatRHSA-2021:4038MODERATE2021-11-01
RHSA-2021:4038 — Moderate
- Red HatRHSA-2021:4586MODERATE2021-11-01
RHSA-2021:4586 — Moderate
- Red HatRHSA-2021:4588MODERATE2021-11-01
RHSA-2021:4588 — Moderate
- Red HatRHSA-2021:4589MODERATE2021-11-01
RHSA-2021:4589 — Moderate
- Red HatRHSA-2021:4590MODERATE2021-11-01
RHSA-2021:4590 — Moderate
- Red HatRHSA-2021:4591MODERATE2021-11-01
RHSA-2021:4591 — Moderate
- Red HatRHSA-2021:4592MODERATE2021-11-01
RHSA-2021:4592 — Moderate
- Red HatRHSA-2021:4593MODERATE2021-11-01
RHSA-2021:4593 — Moderate
- Red HatRHSA-2021:4594MODERATE2021-11-01
RHSA-2021:4594 — Moderate
- Red HatRHSA-2021:4598MODERATE2021-11-01
RHSA-2021:4598 — Moderate
- Red HatRHSA-2021:4599MODERATE2021-11-01
RHSA-2021:4599 — Moderate
- Red HatRHSA-2021:4600MODERATE2021-11-01
RHSA-2021:4600 — Moderate
- Red HatRHSA-2021:4649MODERATE2021-11-01
RHSA-2021:4649 — Moderate
Data Freshness Timeline
(refreshed 12× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:04 UTCEG score recompute
- 2026-07-22 22:51 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 08:59 UTCOSV refresh
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
Show 72 moreShow fewer
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 08:00 UTCOSV refresh
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 18:10 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 08:17 UTCEG score recompute
- 2026-05-26 08:17 UTCVendor advisory
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 20:16 UTCOSV refresh
Publicly available exploits
(4 references)Working exploit code is in the public domain (4 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCMoshe-ship/bidi-guardFirst seen Mar 21, 2026
Scan code for invisible bidirectional Unicode characters (Trojan Source attack prevention, CVE-2021-42574)
Open source ↗ - GitHub PoCtin-z/solidity_CVE-2021-42574-POCFirst seen Jan 31, 2023
POC of CVE-2021-42574 for solidity and solc compiler
Open source ↗ - GitHub PoCmaweil/bidi_char_detectorFirst seen Nov 6, 2021
Checks your files for existence of Unicode BIDI characters which can be misused for supply chain attacks. See CVE-2021-42574
Open source ↗ - GitHub PoCsimplylu/CVE-2021-42574First seen Nov 2, 2021
Generate malicious files using recently published bidi-attack (CVE-2021-42574)
Open source ↗
Frequently asked(5)
What is CVE-2021-42574?
When was CVE-2021-42574 disclosed?
Is CVE-2021-42574 actively exploited?
What is the CVSS score of CVE-2021-42574?
How do I remediate CVE-2021-42574?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2021-42574
Is Your Infrastructure Affected by CVE-2021-42574?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.