---
title: Trojan Source
slug: trojan-source
qid: 
snapshot: enwiki-001358282835
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1358282835
tags: [22951508, 22985424, 23603337, 26220375, 33048645, 52919241, 6551848]
---

# Trojan Source

> [!note] Provenance
> Snapshot `enwiki-001358282835` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1358282835> · Licensed CC BY-SA 4.0

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.

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
