Trojan Source

Trojan Source is a software vulnerability that abuses Unicode's bidirectional characters to display source code differently than the actual execution of the source code.

Uses your system voice; voice and rate in settings.

≈ 1 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Trojan Source is a software vulnerability that abuses Unicode's bidirectional characters to display source code differently than the actual execution of the source code. The exploit utilizes how writing scripts of different reading directions are displayed and encoded on computers. It was discovered by Nicholas Boucher and Ross Anderson at Cambridge University in late 2021.

CVE-2021-42574 - NIST & CVE (BIDI exploit) CVE-2021-42694 - NIST & CVE (homoglyph attack) UAX 9 from the Unicode Consortium about bidirectional characters and formatting Unicode UTR 36 from the Unicode Consortium, which describes the vulnerability in Unicode CERT/CC vulnerability report

Text derived from https://en.wikipedia.org/w/index.php?oldid=1358282835 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001358282835 · captured 2026-06-07 · ledger · version history

Cite this page as: encyclopegia.org, “Trojan Source”, snapshot enwiki-001358282835. https://encyclopegia.org/a/trojan-source

Sources cited in this revision

14 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.