SecurityContext

CVE-2021-22568: Dart SDK - Broken Authentication

  • Cve: CVE-2021-22568
  • Name: Dart SDK - Broken Authentication
  • 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
  • Impact: Attackers can impersonate users on pub.dev, potentially leading to unauthorized package publication or modification.
  • Remediation: Upgrade to Dart SDK version 2.15.0 or later, beyond commit d787e78d21e12ec1ef712d229940b1172aafcdf8.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: privilege_escalation
  • Requirement type: logged_in
  • Requirements: Attacker needs a valid OAuth2 access token
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L
  • Epss score: 0.00937
  • Epss percentile: 0.61599
  • Assignee: [email protected]
  • Published at: 2021-12-09T17:15:07Z
  • Age in days: 1811
  • Modified at: 2026-06-17T03:37:26Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22568
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-255—
CWE-668Exposure of Resource to Wrong Sphere

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/dart-lang/sdk/blob/main/CHANGELOG.mdPatch, Third Party Advisory
https://github.com/dart-lang/sdk/commit/d787e78d21e12ec1ef712d229940b1172aafcdf8Patch, Third Party Advisory
https://github.com/dart-lang/sdk/security/advisories/GHSA-r32f-vhjp-qhj7Issue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
dart:dart_software_development_kit< 2.15.0nonvd/v1/products/dart/dart_software_development_kit

Projects

RepositoryLink kindsIndexedUrl
dart-lang/sdkcommit, security_advisoryyes/v1/repositories/dart-lang/sdk

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts