CVE-2021-42574

Exp

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.

Published: 2021-11-01 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-42574 is rated High Exploit Risk (81.4/100): CVSS High severity, with high exploitation likelihood (EPSS 24.99%, 96th percentile). Core evidence: 4 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2021-42574

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2021-42574

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-28 25.47% 24.99% -0.48%
2 2026-05-22 24.99% 25.47% +0.48%
3 2026-05-09 24.99%

Full EPSS history (69 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-42574

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.3 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.6 6.0 [email protected]
5.1 2.0 MEDIUM
AV:N/AC:H/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:H)
Exploitation requires uncommon or highly specific conditions.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
4.9 6.4 [email protected]

Weakness enumeration for CVE-2021-42574

OS Trackers for CVE-2021-42574

vendor priority summary link
alpine CVE-2021-42574: 1 source package rows (rust); 8 state rows across 8 repos (3.17-community, 3.18-community, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-community, edge-main); fixed 8, open 0. https://security.alpinelinux.org/vuln/CVE-2021-42574
debian unimportant CVE-2021-42574 unimportant priority: Debian including 1 source packages (rustc), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 1. https://security-tracker.debian.org/tracker/CVE-2021-42574
gentoo normal CVE-2021-42574: 1 GLSA(s) (202210-09), 2 atom(s) (dev-lang/rust, dev-lang/rust-bin); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-42574
redhat medium https://access.redhat.com/security/cve/CVE-2021-42574
suse high CVE-2021-42574 severity important: SUSE including 114 source package names (annobin-9.72-1.el8_5.2, annobin-annocheck-9.72-1.el8_5.2, …), 116 product×package rows across 4 product lines (SUSE Liberty Linux 7, SUSE Liberty Linux 7 LTSS, SUSE Liberty Linux 8, openSUSE Tumbleweed): Fixed 116. https://www.suse.com/security/cve/CVE-2021-42574/
ubuntu medium CVE-2021-42574 medium priority: Ubuntu including 1 source packages (rustc), 12 status rows across 12 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, trusty, upstream, xenial): not-affected 6, ignored 3, released 3. https://ubuntu.com/security/CVE-2021-42574

Affected software / configurations for CVE-2021-42574

Vendor Product Version Raw CPE
unicode unicode < 14.0.0 cpe:2.3:a:unicode:unicode:*:*:*:*:*:*:*:*
fedoraproject fedora 33 cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
starwindsoftware starwind_virtual_san v8r13 cpe:2.3:a:starwindsoftware:starwind_virtual_san:v8r13:14398:*:*:*:*:*:*

References for CVE-2021-42574

URL Tags
http://www.openwall.com/lists/oss-security/2021/11/01/1 Exploit Mailing List Mitigation Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/11/01/4 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/11/01/5 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/11/01/6 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/11/02/10 Mailing List
http://www.unicode.org/versions/Unicode14.0.0/ Release Notes Vendor Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2RG5YTR6ZZOLUV3EUPZEIJR7XHJLVD/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQNTFF24ROHLVPLUOEISBN3F7QM27L4U/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUPA37D57VPTDLSXOOGF4UXUEADOC4PQ/
https://security.gentoo.org/glsa/202210-09 Third Party Advisory
https://trojansource.codes Exploit Technical Description Third Party Advisory
https://www.kb.cert.org/vuls/id/999008 Third Party Advisory US Government Resource
https://www.scyon.nl/post/trojans-in-your-source-code Exploit Mitigation Third Party Advisory
https://www.starwindsoftware.com/security/sw-20220804-0002/ Third Party Advisory
https://www.unicode.org/reports/tr31/ Technical Description Vendor Advisory
https://www.unicode.org/reports/tr36/ Technical Description Vendor Advisory
https://www.unicode.org/reports/tr39/ Technical Description Vendor Advisory
https://www.unicode.org/reports/tr9/tr9-44.html#HL4 Technical Description Vendor Advisory
cvelogic Threat Intelligence