SecurityContext

CVE-2021-42694: Unicode - Identifier Spoofing

  • Cve: CVE-2021-42694
  • Name: Unicode - Identifier Spoofing
  • Description: 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.
  • Impact: Attackers can inject deceptive code via homoglyphs, potentially leading to code injection, security bypass, or malicious behavior in downstream applications.
  • Remediation: Implement security measures such as character normalization, strict identifier validation, and use of Unicode security mechanisms as recommended in Unicode Technical Standard #39.
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.3
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.0491
  • Epss percentile: 0.92236
  • Assignee: [email protected]
  • Published at: 2021-11-01T04:15:08Z
  • Age in days: 1849
  • Modified at: 2026-06-17T04:09:58Z
  • Patch available: yes
  • Public exploits total: 3
  • References total: 10
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42694
  • Nvd status: modified
  • Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
NVD-CWE-Other—
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://www.scyon.nl/post/trojans-in-your-source-codenvd2021-11-01
https://github.com/k271266/CVE-2021-42694poc-in-github2025-05-14
https://github.com/simplylu/CVE-2021-42694poc-in-github2021-11-02

References

Same in every row:

  • Source: nvd
UrlTags
http://www.unicode.org/versions/Unicode14.0.0/Release Notes, Vendor Advisory
https://www.unicode.org/reports/tr36/Technical Description, Vendor Advisory
https://www.unicode.org/reports/tr39/Technical Description, Vendor Advisory
https://www.scyon.nl/post/trojans-in-your-source-codeExploit, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/11/01/1Mailing List, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/11/01/6Mailing List, Third Party Advisory
https://cwe.mitre.org/data/definitions/1007.htmlThird Party Advisory
https://security.gentoo.org/glsa/202210-09Third Party Advisory
https://trojansource.codesThird Party Advisory
https://www.kb.cert.org/vuls/id/999008Third Party Advisory, US Government Resource

Products

ProductAffectedPlatform boundSourcesUrl
unicode:unicode< 14.0.0nonvd/v1/products/unicode/unicode

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2021-11-01
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts