CVE-2020-12691: OpenStack Keystone EC2 Credential Masquerade

keystone Updated 02 Oct 2025

Summary

07/05/2020
Yes i
High
8.8

CVE-2020-12691: An issue was discovered in OpenStack Keystone before 15.0.1, and 16.0.0. Affects keystone versions < 15.0.1. Fixed in 15.0.1. How to fix ↓

Also tracked for

The same CVE-2020-12691 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenStack Keystone is an open-source identity service that provides authentication and authorization for other OpenStack services. It manages user credentials and access control policies. The Keystone package is available on PyPI and is widely used in OpenStack deployments. However, prior to versions 15.0.1 and 16.0.0, a vulnerability exists that allows an authenticated user to create an EC2 credential for themselves in a project where they have a specified role. This user can then update the credential user and project, enabling them to masquerade as another user. This can potentially grant the malicious user global admin privileges, allowing them to act as the admin on a project where another user has the admin role.

Vulnerability Detail

The vulnerability in OpenStack Keystone allows an authenticated user to create an EC2 credential and modify the associated user and project. By exploiting this vulnerability, a malicious user can impersonate another user with admin privileges on a project. This can lead to unauthorized access and potential misuse of global admin privileges. The vulnerability is present in versions prior to 15.0.1 and 16.0.0 of the Keystone package.

How To Fix

Latest published version: 30.0.0 as of 22 Oct 2026

pip install --upgrade "keystone==30.0.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

15.0.1

This is the first release that contains the fix.

pip install --upgrade "keystone==15.0.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the Keystone package to mitigate the risk.

Conclusion

The vulnerability in OpenStack Keystone allows an authenticated user to create an EC2 credential and masquerade as another user with admin privileges. To mitigate this risk, it is crucial to upgrade to version 15.0.1 or later of the Keystone package. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for keystone →

Share this vulnerability

FAQ

OpenStack Keystone is an open-source identity service that provides authentication and authorization for other OpenStack services.

The vulnerability allows an authenticated user to masquerade as another user with admin privileges on a project, potentially granting them global admin privileges.

Versions prior to 15.0.1 and 16.0.0 of the Keystone package are affected.

No, there is no known workaround. It is necessary to upgrade to the fixed version of the Keystone package.

To fix this vulnerability, upgrade to version 15.0.1 or later of the Keystone package.

Related vulnerabilities

Recent vulnerabilities recorded for keystone.

How To Fix

Latest published version: 30.0.0 as of 22 Oct 2026

pip install --upgrade "keystone==30.0.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

15.0.1

This is the first release that contains the fix.

pip install --upgrade "keystone==15.0.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback