CVE-2020-12691
OpenStack Keystone V3 /credentials endpoint policy logic allows to change credentials owner or target project ID
Also known as GHSA-4427-7f3w-mqv6, PYSEC-2020-55
Mitigation
- Upgrade keystone to one of 15.0.1, 16.0.1 (or later in the same release line).
Who should check
- Projects that depend on PyPI package keystone (< 15.0.1)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- keystone < 15.0.1
- Fixed in
- 15.0.1, 16.0.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 4.92% chance of exploitation in 30 days (percentile 93, 2026-11-26)
- CWE
- CWE-863
- Modified
Description
An issue was discovered in OpenStack Keystone before 15.0.1, and 16.0.0. Any authenticated user can create an EC2 credential for themselves for a project that they have a specified role on, and then perform an update to the credential user and project, allowing them to masquerade as another user. This potentially allows a malicious user to act as the admin on a project another user has the admin role on, which can effectively grant that user global admin privileges.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI keystone | < 15.0.1 | 15.0.1, 16.0.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-12691. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-12691.md Affected: keystone < 15.0.1 Fixed in: 15.0.1, 16.0.1 Steps: 1. Search this machine and project for keystone (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://bugs.launchpad.net/keystone/+bug/1872733
- https://github.com/openstack/keystone/commit/37e9907a176dad6843819b1bec4946c3aecc4548
- https://github.com/openstack/keystone/commit/40cbb7bebd50276412daa1981ff5a7c7b3b899a5
- https://github.com/openstack/keystone/commit/95b2bbeab113d9f04d1c81f7f1b48bf692bce979
Other
- https://www.openwall.com/lists/oss-security/2020/05/06/5
- http://www.openwall.com/lists/oss-security/2020/05/07/2
- https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2%40%3Ccommits.druid.apache.org%3E
- https://lists.apache.org/thread.html/re237267da268c690df5e1c6ea6a38a7fc11617725e8049490f58a6fa%40%3Ccommits.druid.apache.org%3E
- https://github.com/openstack/keystone
- https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2020-55.yaml
- https://lists.apache.org/thread.html/re237267da268c690df5e1c6ea6a38a7fc11617725e8049490f58a6fa@%3Ccommits.druid.apache.org%3E
- https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2@%3Ccommits.druid.apache.org%3E
- https://usn.ubuntu.com/4480-1
FAQ
Is CVE-2020-12691 being exploited?
There is no confirmed exploitation: CVE-2020-12691 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.92% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-12691?
High: CVSS 8.8 (v3.1, scored by NVD). Remote, login needed.
Which versions are affected by CVE-2020-12691?
keystone < 15.0.1.
Is there a fix for CVE-2020-12691?
Yes. Fixed in 15.0.1, 16.0.1. Upgrade keystone to one of 15.0.1, 16.0.1 (or later in the same release line).
How do I check if I'm affected by CVE-2020-12691?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.