CVEMETERBack to radar
OFFICIAL RECORD · Rust

CVE-2021-42574

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 8.3 · high

Rust · CVE-2021-42574

An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic than the logical ordering of tokens ingested by compilers and interpreters. Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted vulnerabilities are introduced invisibly to human reviewers. 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 and the Unicode Bidirectional Algorithm (all versions). Due to text display behavior when text includes left-to-right and right-to-left characters, the visual order of tokens may be different from their logical order. Additionally, control characters needed to fully support the requirements of bidirectional text can further obfuscate the logical order of tokens. Unless mitigated, an adversary could craft source code such that the ordering of tokens perceived by human reviewers does not match what will be processed by a compiler/interpreter/etc. The Unicode Consortium has documented this class of 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, and in Unicode Standard Annex #31, Unicode Identifier and Pattern Syntax. Also, the BIDI specification allows applications to tailor the implementation in ways that can mitigate misleading visual reordering in program text; see HL4 in Unicode Standard Annex #9, Unicode Bidirectional Algorithm.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 12.881% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 8.3 · published by Ubuntu Security
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:51:15.805Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:28:52.703ZCISA KEV
cvssverified2026-11-19T16:51:15.805ZUbuntu Security
epssverified2026-11-19T16:04:31.971ZFIRST EPSS
patchesverified2026-11-19T16:51:15.805ZUbuntu Security
affectedverified2026-11-19T12:56:13.293ZCVE Program
lifecycleverified2026-11-19T12:56:13.293ZCVE Program

Affected versions and configuration

n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "rustc",
    "debian": "https://tracker.debian.org/pkg/rustc",
    "source": "https://ubuntu.com/security/cve?package=rustc",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=rustc",
    "statuses": [
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "1.57.0+dfsg1+llvm-0ubuntu1~18.04.1",
        "release_codename": "bionic"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1.57.0+dfsg1+llvm-0ubuntu1~20.04.1",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life",
        "release_codename": "hirsute"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life",
        "release_codename": "impish"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "disputed",
        "release_codename": "trusty"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life, was needs-triage",
        "release_codename": "kinetic"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "1.61.0+dfsg1-1~exp1ubuntu1",
        "release_codename": "lunar"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1.56.1",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "disputed",
        "release_codename": "xenial"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1.57.0+dfsg1+llvm-0ubuntu2",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "1.67.1+dfsg0ubuntu1-0ubuntu2",
        "release_codename": "mantic"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "1.67.1+dfsg0ubuntu1-0ubuntu2",
        "release_codename": "noble"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "n/a",
      "product": "n/a",
      "versions": [
        {
          "status": "affected",
          "version": "n/a"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2021-42574",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2024-06-11T15:16:49.504878Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2024-06-11T15:17:01.399Z"
      }
    },
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "http://www.unicode.org/versions/Unicode14.0.0/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://trojansource.codes",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "http://www.openwall.com/lists/oss-security/2021/11/01/1",
          "name": "[oss-security] 20211101 CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code",
          "tags": [
            "mailing-list",
            "x_transferred"
          ]
        },
        {
          "url": "http://www.openwall.com/lists/oss-security/2021/11/01/4",
          "name": "[oss-security] 20211101 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code",
          "tags": [
            "mailing-list",
            "x_transferred"
          ]
        },
        {
          "url": "http://www.openwall.com/lists/oss-security/2021/11/01/6",
          "name": "[oss-security] 20211101 Trojan Source Attacks",
          "tags": [
            "mailing-list",
            "x_transferred"
          ]
        },
        {
          "url": "http://www.openwall.com/lists/oss-security/2021/11/01/5",
          "name": "[oss-security] 20211102 Re: CVE-2021-42574: rustc 1.56.0 and bidirectional-override codepoints in source code",
          "tags": [
            "mailing-list",
            "x_transferred"
          ]
        },
        {
          "url": "http://www.openwall.com/lists/oss-security/2021/11/02/10",
          "name": "[oss-security] 20211102 Re: Trojan Source Attacks",
          "tags": [
            "mailing-list",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUPA37D57VPTDLSXOOGF4UXUEADOC4PQ/",
          "name": "FEDORA-2021-0578e23912",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQNTFF24ROHLVPLUOEISBN3F7QM27L4U/",
          "name": "FEDORA-2021-7ad3a01f6a",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.kb.cert.org/vuls/id/999008",
          "name": "VU#999008",
          "tags": [
            "third-party-advisory",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IH2RG5YTR6ZZOLUV3EUPZEIJR7XHJLVD/",
          "name": "FEDORA-2021-443139f67c",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.scyon.nl/post/trojans-in-your-source-code",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.unicode.org/reports/tr36/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.unicode.org/reports/tr39/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.unicode.org/reports/tr31/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.unicode.org/reports/tr9/tr9-44.html#HL4",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.starwindsoftware.com/security/sw-20220804-0002/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://security.gentoo.org/glsa/202210-09",
          "name": "GLSA-202210-09",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-04T03:38:49.283Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
distribution-packageUbuntu / focalrustcsecurity1.57.0+dfsg1+llvm-0ubuntu1~20.04.1Official record
upstream-releaseupstream / upstreamrustcNot a distribution channel1.56.1Official record
distribution-packageUbuntu / jammyrustcsecurity1.57.0+dfsg1+llvm-0ubuntu2Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history