CVE-2021-22567 Bidirectional Override in Dart SDK
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.
Other vulnerabilities in Google LLC Dart SDK
- CVE-2022-3095 Incorrect parsing of the backslash characters in Dart library
- CVE-2021-22568 Dart - Publishing to third-party package repositories may expose pub.dev credentials
- CVE-2026-27704 Dart SDK and Flutter SDK have Zip slip in Dart Pub package extraction
- CVE-2022-0451 Auth bypass in Dark SDK
- CVE-2021-22540 XSS in Dart SDK