CVE-2021-22567 Bidirectional Override in Dart SDK

Medium 4.6 Published Updated

Attackers can hide malicious code in Dart source files using bidirectional Unicode, bypassing code reviews to execute arbitrary code.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-22567?

CVE-2021-22567 is a medium-severity code injection vulnerability in Google LLC Dart SDK, published on 5 Jan 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Bidirectional Unicode text can be interpreted and compiled differently than how it appears in editors which can be exploited to get nefarious code passed a code review by appearing benign. An attacker could embed a source that is invisible to a code reviewer that modifies the behavior of a program in unexpected ways.

Weakness: CWE-284

Which versions are affected by CVE-2021-22567?

It affects 1 product.

Products include Dart Dart Software Development Kit.

How do I fix CVE-2021-22567?

No fix has been published for CVE-2021-22567 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-22567 being exploited?

There is no known exploitation of CVE-2021-22567 in the wild and no public exploit code.

Sources

Is CVE-2021-22567 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free