Unicode: security vulnerability (CVE-2021-42574)
Published Sources: CVE.org
What is affected, what to do
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.
An exploit is publicly available. Update Unicode to version 14.0.0.
- Affected
- Unicode
lt *..14.0.0 - Fedora
eq 33..33 - Fedora
eq 34..34 - Fedora
eq 35..35 - Starwindsoftware Starwind Virtual San
eq v8r13..v8r13
- Unicode
- Fixed in
- Unicode
14.0.0
- Unicode
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
8.3
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v3
8.3
CVSS v3
Severity High on the scale from 0 to 10.
Source: CVE.org
12.9 %
EPSS score
Elevated — model estimates 10-50% exploitation likelihood.
Source: FIRST EPSS, percentile 96.3
Show all metrics
- Severity
- High
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 115.67 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- PoC (publicly reported)
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 8.3 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 8.3
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 12.9 %
- Elevated — model estimates 10-50% exploitation likelihood.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 96.3
- Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- —
- Published
- CISA assessment (SSVC)
- Exploitation: proof of concept · not automatable · Technical impact: total
- Source: CISA Vulnrichment, as of 11 June 2024
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
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: NVD (NIST), cvelistv5
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| starwindsoftware | starwind_virtual_san |
|
|
| unicode | unicode |
|
|
Vendors and products
Affected operating systems
| Other | fedoraproject | fedora | 33 |
| Other | fedoraproject | fedora | 34 |
| Other | fedoraproject | fedora | 35 |
Public exploit references
Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.
| Reference tagged as exploit | openwall.com (opens in a new tab) | PoC (publicly reported)reported, not verified | — |
| Reference tagged as exploit | openwall.com (opens in a new tab) | PoC (publicly reported)reported, not verified | — |
| PoC-in-GitHub (nomi-sec) | GlyphGuard (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | nullorigin (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | cobol-shield (opens in a new tab)github.com | PoC (publicly reported)reported, not verified |
References & sources
- unicode.orgversions/Unicode14.0.0Release notes, Vendor advisory
- trojansource.codesExploit, Technical description, Third-party advisory
- openwall.com[oss-security] 20211101 CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source codeMailing list, Exploit, Mailing list, Mitigation, Third-party advisory
- openwall.com[oss-security] 20211101 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source codeMailing list, Exploit, Mailing list, Third-party advisory
- openwall.com[oss-security] 20211101 Trojan Source AttacksMailing list, Mailing list, Third-party advisory
- openwall.com[oss-security] 20211102 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source codeMailing list, Mailing list, Third-party advisory
- openwall.com[oss-security] 20211102 Re: Trojan Source AttacksMailing list, Mailing list
- lists.fedoraproject.orgFEDORA-2021-0578e23912Vendor advisory
- lists.fedoraproject.orgFEDORA-2021-7ad3a01f6aVendor advisory
- kb.cert.orgVU#999008Third-party advisory, Third-party advisory, US government resource
- lists.fedoraproject.orgFEDORA-2021-443139f67cVendor advisory
- scyon.nlpost/trojans-in-your-source-codeExploit, Mitigation, Third-party advisory
- unicode.orgreports/tr36Technical description, Vendor advisory
- unicode.orgreports/tr39Technical description, Vendor advisory
- unicode.orgreports/tr31Technical description, Vendor advisory
- unicode.orgreports/tr9/tr9-44.htmlTechnical description, Vendor advisory
- starwindsoftware.comsecurity/sw-20220804-0002Third-party advisory
- security.gentoo.orgGLSA-202210-09Vendor advisory, Third-party advisory
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2021-42574"><img src="https://intel.neosec.eu/badge/cve/CVE-2021-42574.svg?lang=en" alt="CVE-2021-42574 – NEOSEC Intel" height="20"></a>