CVE-2021-42694 json
An issue was discovered in the character definitions of the Unicode Specification through 14.0.
published 5y ago modified 4mo ago also EUVD-2021-29655
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.9%
- EPSS 4.9% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
An issue was discovered in the character definitions of the Unicode Specification through 14.0. The specification allows an adversary to produce source code identifiers such as function names using homoglyphs that render visually identical to a target identifier. Adversaries can leverage this to inject code via adversarial identifier definitions in upstream software dependencies invoked deceptively in downstream software. 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 (all versions). Unless mitigated, an adversary could produce source code identifiers using homoglyph characters that render visually identical to but are distinct from a target identifier. In this way, an adversary could inject adversarial identifier definitions in upstream software that are not detected by human reviewers and are invoked deceptively in downstream software. The Unicode Consortium has documented this class of security 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.
Patch / fix
- unicode unicode 14.0.0
Is CVE-2021-42694 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-42694 updated cvss 8.3
environment: Homoglyph characters can lead to trojan source attack
-
Red Hat Enterprise Linux 7 cpp, gcc, libgo, gcc-go, libgcc, libitm, +15 more Red Hat Enterprise Linux 8 cpp, gcc, libgcc, libitm, gcc-c++, libasan, +13 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
4.91% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- scyon.nl https://www.scyon.nl/post/trojans-in-your-source-code referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected products
- unicode unicode
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
scyon.nl
/post/trojans-in-your-source-code
exploit, third-party-advisory
-
security.gentoo.org
/glsa/202210-09
vendor-advisory, third-party-advisory
-
unicode.org
/versions/Unicode14.0.0/
release-notes, vendor-advisory
-
unicode.org
/reports/tr36/
technical-description, vendor-advisory
-
unicode.org
/reports/tr39/
technical-description, vendor-advisory
-
trojansource.codes
third-party-advisory
-
openwall.com
/lists/oss-security/2021/11/01/1
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2021/11/01/6
mailing-list, third-party-advisory
-
kb.cert.org
/vuls/id/999008
third-party-advisory, us-government-resource
-
cwe.mitre.org
/data/definitions/1007.html
third-party-advisory
Sources
- CVE List CVE-2021-42694
- NVD CVE-2021-42694
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.