encyclopegia.org

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. 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

References

  1. 'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). 'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  2. Warning Options (Using the GNU Compiler Collection (GCC)) . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Warning Options (Using the GNU Compiler Collection (GCC)) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Warning Options (Using the GNU Compiler Collection (GCC)) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Warning Options (Using the GNU Compiler Collection (GCC)) . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  3. Security advisory for rustc (CVE-2021-42574) ! . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Security advisory for rustc (CVE-2021-42574) ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Security advisory for rustc (CVE-2021-42574) ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Security advisory for rustc (CVE-2021-42574) ! . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  4. October 2021 (version 1.62) : Unicode directional formatting characters . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "October 2021 (version 1.62) : Unicode directional formatting characters ." October 2021 (version 1. 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "October 2021 (version 1.62) : Unicode directional formatting characters ." October 2021 (version 1. 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA October 2021 (version 1. (2026). October 2021 (version 1.62) : Unicode directional formatting characters . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  5. RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  6. Warning about bidirectional Unicode text ! . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Warning about bidirectional Unicode text ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Warning about bidirectional Unicode text ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Warning about bidirectional Unicode text ! . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  7. VU#999008 - Compilers permit Unicode control and homoglyph characters . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "VU#999008 - Compilers permit Unicode control and homoglyph characters ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "VU#999008 - Compilers permit Unicode control and homoglyph characters ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). VU#999008 - Compilers permit Unicode control and homoglyph characters . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  8. Usage Survey of Character Encodings broken down by Ranking . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Usage Survey of Character Encodings broken down by Ranking ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Usage Survey of Character Encodings broken down by Ranking ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Usage Survey of Character Encodings broken down by Ranking . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  9. UAX #9: Unicode Bidirectional Algorithm . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "UAX #9: Unicode Bidirectional Algorithm ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "UAX #9: Unicode Bidirectional Algorithm ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). UAX #9: Unicode Bidirectional Algorithm . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  10. Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12 · retrieved 2022-03-11 · rev 1358282835
    Cite this reference

    MLA "Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12." Edge, Jake. 2022-03-11. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12." Edge, Jake. 2022-03-11. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA Edge, Jake. (2022). Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  11. Trojan Source: Hiding malicious code in plain sight . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Trojan Source: Hiding malicious code in plain sight ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Trojan Source: Hiding malicious code in plain sight ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Trojan Source: Hiding malicious code in plain sight . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  12. Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  13. GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

  14. Prevent Trojan Source attacks with GCC 12 . · retrieved 2026-06-06 · rev 1358282835
    Cite this reference

    MLA "Prevent Trojan Source attacks with GCC 12 ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.

    Chicago "Prevent Trojan Source attacks with GCC 12 ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.

    APA encyclopegia.org. (2026). Prevent Trojan Source attacks with GCC 12 . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835

Cite this article

MLA

"Trojan Source." encyclopegia.org, 2026, https://encyclopegia.org/wiki/trojan-source. Accessed 24 November 2026.

Chicago

"Trojan Source." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/trojan-source.

APA

encyclopegia.org. (2026). Trojan Source. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/trojan-source

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

trojan

stub · references available

cost of electricity by source

stub · references available

two-source hypothesis

stub · references available

Trojan Room coffee pot

stub · references available

Open Source Applications Foundation

stub · references available

free and open-source software

stub · references available

Trojan Horse

stub · references available

Open Source Vulnerability Database

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1358282835 · 0.5 · snapshot enwiki-001358282835

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.