CVE-2021-22568 Dart - Publishing to third-party package repositories may expose pub.dev credentials

High 8.8 Published Updated

Publishing to third-party servers exposes pub.dev credentials, allowing attackers to impersonate users on pub.dev.

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

What is CVE-2021-22568?

CVE-2021-22568 is a high-severity vulnerability in Google LLC Dart SDK, published on 9 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

When using the dart pub publish command to publish a package to a third-party package server, the request would be authenticated with an oauth2 access_token that is valid for publishing on pub.dev. Using these obtained credentials, an attacker can impersonate the user on pub.dev. We recommend upgrading past https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8 or beyond version 2.15.0

Weakness: CWE-668, CWE-255

Which versions are affected by CVE-2021-22568?

It affects 1 product.

Products include Dart Dart Software Development Kit.

How do I fix CVE-2021-22568?

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

Is CVE-2021-22568 being exploited?

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

Sources

Also known as GHSA-r32f-vhjp-qhj7.

Is CVE-2021-22568 in your software?

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

Check your SBOMs for free