Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2021-42574

Опубликовано: 01 нояб. 2021
Источник: redhat
CVSS3: 8.5
EPSS Средний

Описание

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.

A flaw was found in the way Unicode standards are implemented in the context of development environments, which have specialized requirements for rendering text. An attacker could exploit this to deceive a human reviewer by creating a malicious patch containing well placed BiDi characters. The special handling and rendering of those characters can be then used in an attempt to hide unexpected and potentially dangerous behaviour from the reviewer.

Отчет

This is a flaw with the way Unicode standards are implemented in the context of development environments, which have specialized requirements for rendering text. This is not a flaw in Red Hat products.

Меры по смягчению последствий

This issue can be mitigated by ensuring code commits get a proper review. All new commits can also be scanned for the presence of BiDi characters before accepting the commit.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Developer Toolsllvm-toolset-12.0-clangAffected
Red Hat Enterprise Linux 7gccWill not fix
Red Hat Enterprise Linux 8gcc-toolset-9-annobinWill not fix
Red Hat Enterprise Linux 8gcc-toolset-9-binutilsWill not fix
Red Hat Enterprise Linux 8gcc-toolset-9-gccWill not fix
Red Hat Enterprise Linux 8go-toolset:rhel8/golangWill not fix
Red Hat Enterprise Linux 8mingw-binutilsWill not fix
Red Hat Enterprise Linux 9annobinNot affected
Red Hat Enterprise Linux 9binutilsNot affected
Red Hat Enterprise Linux 9clangNot affected

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-838
https://bugzilla.redhat.com/show_bug.cgi?id=2005819environment: Unicode's bidirectional (BiDi) override characters can cause trojan source attacks

EPSS

Процентиль: 96%
0.21803
Средний

8.5 High

CVSS3

Связанные уязвимости

CVSS3: 8.3
ubuntu
почти 4 года назад

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

CVSS3: 8.3
nvd
почти 4 года назад

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

CVSS3: 8.3
debian
почти 4 года назад

An issue was discovered in the Bidirectional Algorithm in the Unicode ...

rocky
больше 3 лет назад

Moderate: gcc-toolset-10-gcc security update

oracle-oval
больше 3 лет назад

ELSA-2021-4743: llvm-toolset:ol8 security update (MODERATE)

EPSS

Процентиль: 96%
0.21803
Средний

8.5 High

CVSS3