CVE-2022-2447: Medium severity Openstack Keystone vulnerability

Published Jul 8, 2022
·
Updated

A flaw was found in Keystone. There is a time lag (up to one hour in a default configuration) between when security policy says a token should be revoked from when it is actually revoked. This could allow a remote administrator to secretly maintain access for longer than expected.

Other sources

Description of problem: Keystone issues tokens with the default lifespan regardless of the lifespan of the application credentials used to issue them. If the configured lifespan of an identity token is set to be 1h, and the application credentials expire in 1 minute from now, a newly issued token will outlive the application credentials used to issue it by 59 minutes.

How reproducible: 100%

Steps to Reproduce: 1. Create application credentials with short expiration time (e.g. 10 seconds) 2. openstack token issue --> the returned token has standard expiration, for example 1 hour. The script below confirms that the token continue being valid after the application credentials expired.

bash #!/usr/bin/env bash

set -Eeuo pipefail

openstack image create --disk-format=raw --container-format=bare --file <(echo 'I am a Glance image') testimage -f json > image.json

imageurl="$(openstack catalog show glance -f json | jq -r '.endpoints[] | select(.interface=="public").url')$(jq -r '.file' image.json)"

openstack application credential create \ --expiration="$(date --utc --date '+10 second' +%Y-%m-%dT%H:%M:%S)" \ tokentest \ -f json \ > appcreds.json

cat <<EOF > clouds.yaml clouds: ${OSCLOUD}: auth: authurl: <authurl> applicationcredentialid: '$(jq -r '.id' appcreds.json)' applicationcredentialsecret: '$(jq -r '.secret' appcreds.json)' authtype: "v3applicationcredential" identityapiversion: 3 interface: public regionname: <regionname> EOF Override ~/.config/openstack/secure.yaml touch secure.yaml

openstack token issue -f json > token.json

echo "appcreds expiration: $(jq -r '.expiresat' appcreds.json)" for i in {1..10}; do sleep 100 echo -ne "$(date --utc --rfc-3339=seconds)\t" curl -isS -H "X-Auth-Token: $(jq -r '.id' token.json)" --url "$imageurl" | head -n1 done

Actual results (on a cloud with tokens duration of 24h): appcreds expiration: 2022-07-08T13:55:02.000000 2022-07-08 13:56:38+00:00 HTTP/1.1 200 OK 2022-07-08 13:58:19+00:00 HTTP/1.1 200 OK 2022-07-08 14:00:00+00:00 HTTP/1.1 200 OK 2022-07-08 14:01:42+00:00 HTTP/1.1 200 OK 2022-07-08 14:03:23+00:00 HTTP/1.1 200 OK 2022-07-08 14:05:07+00:00 HTTP/1.1 200 OK 2022-07-08 14:06:49+00:00 HTTP/1.1 200 OK 2022-07-08 14:08:37+00:00 HTTP/1.1 200 OK 2022-07-08 14:10:18+00:00 HTTP/1.1 200 OK 2022-07-08 14:12:00+00:00 HTTP/1.1 200 OK

Expected results: appcreds expiration: 2022-07-08T13:55:02.000000 2022-07-08 13:54:38+00:00 HTTP/1.1 200 OK 2022-07-08 13:58:19+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:00:00+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:01:42+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:03:23+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:05:07+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:06:49+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:08:37+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:10:18+00:00 HTTP/1.1 401 Unauthorized 2022-07-08 14:12:00+00:00 HTTP/1.1 401 Unauthorized

Red Hat

Affected Software

7 affected components
Openstack Keystone
redhat Openstack=16.1
redhat Openstack=16.2
redhat Openstack Platform=16.1
redhat Openstack Platform=16.2
redhat Quay=3.0.0
redhat Storage=3.0

Event History

Jul 8, 2022
Data Sourced
06:35 PM
DescriptionSeverityAffected Software
Sep 1, 2022
CVE Published
via MITRE·08:30 PM
Data Sourced
via MITRE·08:30 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-2447?

CVE-2022-2447 is a vulnerability found in Keystone that allows a remote administrator to maintain secret access for longer than expected.

2

What is the severity of CVE-2022-2447?

The severity of CVE-2022-2447 is medium with a CVSS score of 6.6.

3

Which software is affected by CVE-2022-2447?

The software affected by CVE-2022-2447 includes OpenStack Keystone, Redhat Openstack, Redhat Openstack Platform, Redhat Quay, and Redhat Storage.

4

How can an attacker exploit CVE-2022-2447?

An attacker can exploit CVE-2022-2447 by taking advantage of the time lag in token revocation in Keystone.

5

Is there a fix available for CVE-2022-2447?

Yes, a fix is available for CVE-2022-2447. It is recommended to update to the latest version of affected software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203