# CVE-2020-12691: OpenStack Keystone V3 /credentials endpoint policy logic allows to change credentials owner or target project ID

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 4.92% (percentile 93, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-4427-7f3w-mqv6, PYSEC-2020-55
- **Published:** 2020-05-06T23:43:01.000Z
- **Modified:** 2026-06-17T02:52:08.603Z

## Who should check

- Projects that depend on PyPI package keystone (\< 15.0.1)
- Anyone running n/a (versions: see the vendor advisory)

## 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

- PyPI `keystone`: affected \< 15.0.1; fixed 15.0.1, 16.0.1 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade keystone to one of 15.0.1, 16.0.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://security.openstack.org/ossa/OSSA-2020-004.html>
- vendor: <https://usn.ubuntu.com/4480-1/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-12691>
- vendor: <https://github.com/advisories/GHSA-4427-7f3w-mqv6>
- patch: <https://bugs.launchpad.net/keystone/+bug/1872733>
- patch: <https://github.com/openstack/keystone/commit/37e9907a176dad6843819b1bec4946c3aecc4548>
- patch: <https://github.com/openstack/keystone/commit/40cbb7bebd50276412daa1981ff5a7c7b3b899a5>
- patch: <https://github.com/openstack/keystone/commit/95b2bbeab113d9f04d1c81f7f1b48bf692bce979>
- other: <https://www.openwall.com/lists/oss-security/2020/05/06/5>
- other: <http://www.openwall.com/lists/oss-security/2020/05/07/2>
- other: <https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2%40%3Ccommits.druid.apache.org%3E>
- other: <https://lists.apache.org/thread.html/re237267da268c690df5e1c6ea6a38a7fc11617725e8049490f58a6fa%40%3Ccommits.druid.apache.org%3E>
- other: <https://github.com/openstack/keystone>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2020-55.yaml>
- other: <https://lists.apache.org/thread.html/re237267da268c690df5e1c6ea6a38a7fc11617725e8049490f58a6fa@%3Ccommits.druid.apache.org%3E>
- other: <https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2@%3Ccommits.druid.apache.org%3E>
- other: <https://usn.ubuntu.com/4480-1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-12691>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4427-7f3w-mqv6> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-55> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-12691> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-12691>
