CVE-2021-3563: Keystone Openstack Keystone Incorrect Authorization Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-cc99-whm5-mmq3
CVSS 9.1
CWE-863
Published
Advisory Summary

CVE-2021-3563 is a CRITICAL (CVSS 9.1) openstack keystone incorrect authorization vulnerability vulnerability (CWE-863: Incorrect Authorization) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone incorrect authorization vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2021-3563 at a Glance

CVE Identifier CVE-2021-3563
GHSA Identifier GHSA-cc99-whm5-mmq3
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-863: Incorrect Authorization
Affected Product Keystone
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2021-3563

To remediate this vulnerability, upgrade all affected Keystone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

keystone fixed: Latest secure release
pip install keystone>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show keystone

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2021-3563, inspect your installed packages using pip:

pip show keystone

Analyze the terminal output to locate any version of Keystone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show keystone command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Keystone, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A flaw was found in openstack-keystone, only the first 72 characters of an application secret are verified allowing attackers bypass some password complexity which administrators may be counting on. The highest threat from this vulnerability is to data confidentiality and integrity. A [patch](https://opendev.org/openstack/keystone/commit/7859ed26003858ebfd9a5e866b43f1a6a9e83dca) is available.

CVE-2021-3563 Affected Keystone Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
keystone
PyPI
≤ 21.0.0

References

Frequently Asked Questions

What is CVE-2021-3563?
CVE-2021-3563 is a security vulnerability in Keystone involving Openstack Keystone Incorrect Authorization vulnerability under CWE-863: Incorrect Authorization.
Which Keystone versions are affected?
Affected versions include releases prior to current release patches across affected packages: keystone.
What version fixes CVE-2021-3563?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is keystone affected?
Yes, keystone is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2021-3563?
CVE-2021-3563 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2021-3563?
CVE-2021-3563 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for CVE-2021-3563?
Run the dependency tree command: 'pip show keystone'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cc99-whm5-mmq3",
  "modified" : "2022-11-28T21:05:48Z",
  "published" : "2022-08-27T00:00:44Z",
  "aliases" : [ "CVE-2021-3563" ],
  "summary" : "Openstack Keystone Incorrect Authorization vulnerability",
  "details" : "A flaw was found in openstack-keystone, only the first 72 characters of an application secret are verified allowing attackers bypass some password complexity which administrators may be counting on. The highest threat from this vulnerability is to data confidentiality and integrity. A [patch](https://opendev.org/openstack/keystone/commit/7859ed26003858ebfd9a5e866b43f1a6a9e83dca) is available.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "21.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3563"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2021-3563"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ossa/+bug/1901891"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1962908"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2024/01/msg00007.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://opendev.org/openstack/keystone"
  }, {
    "type" : "WEB",
    "url" : "https://opendev.org/openstack/keystone/commit/7859ed26003858ebfd9a5e866b43f1a6a9e83dca"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/keystone/+/803641"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/keystone/+/828595"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/keystone/+/856489"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2021-3563"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-16T21:08:51Z",
    "nvd_published_at" : "2022-08-26T16:15:00Z"
  }
}