CVE-2021-3563: Keystone Openstack Keystone Incorrect Authorization Vulnerability Vulnerability
CRITICALCVE-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
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).
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.
pip install keystone>=Latest secure release
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
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?
Which Keystone versions are affected?
What version fixes CVE-2021-3563?
Is keystone affected?
What is the CVSS score of CVE-2021-3563?
What CWE is associated with CVE-2021-3563?
How can I check PyPI dependencies for CVE-2021-3563?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}