{"id":"CVE-2020-12691","aliases":["CVE-2020-12691","GHSA-4427-7f3w-mqv6","PYSEC-2020-55"],"related":[],"kind":"vulnerability","state":"published","title":"OpenStack Keystone V3 /credentials endpoint policy logic allows to change credentials owner or target project ID","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en OpenStack Keystone versiones anteriores a 15.0.1 y 16.0.0. Cualquier usuario autenticado puede crear una credencial EC2 para sí mismo para un proyecto en el que posee un rol específico, y luego llevar a cabo una actualización para el usuario y el proyecto de la credencial, permitiéndole hacerse pasar por otro usuario. Esto permite potencialmente a un usuario malicioso actuar como el administrador en un proyecto en el que otro usuario presenta la función de administrador, que puede otorgarle efectivamente a ese usuario privilegios de administrador global.","source":"nvd"}],"published":"2020-05-06T23:43:01.000Z","modified":"2026-06-17T02:52:08.603Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-311","CWE-863"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"15.0.1"}],"ecosystem":"PyPI","package":"keystone","purl":"pkg:pypi/keystone","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"16.0.0","status":"affected","fixed":"16.0.1"}],"ecosystem":"PyPI","package":"keystone","purl":"pkg:pypi/keystone","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"15.0.1"},{"status":"affected","version":"16.0.0"}],"vendor":"openstack","product":"keystone","cpe":"cpe:2.3:a:openstack:keystone:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"18.04"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"15.0.1"}],"ecosystem":"PyPI","package":"keystone","purl":"pkg:pypi/keystone","source":"pysec"}],"references":[{"url":"https://security.openstack.org/ossa/OSSA-2020-004.html","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.openwall.com/lists/oss-security/2020/05/06/5","tags":["mailing-list","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugs.launchpad.net/keystone/+bug/1872733","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2020/05/07/2","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/4480-1/","tags":["third-party-advisory","vendor-advisory","web","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.apache.org/thread.html/re237267da268c690df5e1c6ea6a38a7fc11617725e8049490f58a6fa%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12691","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openstack/keystone/commit/37e9907a176dad6843819b1bec4946c3aecc4548","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openstack/keystone/commit/40cbb7bebd50276412daa1981ff5a7c7b3b899a5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openstack/keystone/commit/95b2bbeab113d9f04d1c81f7f1b48bf692bce979","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openstack/keystone","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2020-55.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/re237267da268c690df5e1c6ea6a38a7fc11617725e8049490f58a6fa@%3Ccommits.druid.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2@%3Ccommits.druid.apache.org%3E","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://usn.ubuntu.com/4480-1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-4427-7f3w-mqv6","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-12691","url":"https://www.cve.org/CVERecord?id=CVE-2020-12691","licence":"CVE Terms of Use","modified":"2024-08-04T12:04:22.558Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4427-7f3w-mqv6","url":"https://github.com/advisories/GHSA-4427-7f3w-mqv6","licence":"CC-BY-4.0","modified":"2024-09-27T18:05:12.641Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-12691","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-12691","licence":"Public domain","modified":"2026-06-17T02:52:08.603Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-55","url":"https://osv.dev/vulnerability/PYSEC-2020-55","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:55.558Z"}],"updatedAt":"2026-11-25T22:57:52.321Z","epss":{"score":0.04918,"percentile":0.92303,"date":"2026-12-01T12:00:22.000Z"}}