CVE-2021-32701: Possible bypass of token claim validation when OAuth2 Introspection caching is enabled

Published Jun 22, 2021
·
Updated

ORY Oathkeeper is an Identity & Access Proxy (IAP) and Access Control Decision API that authorizes HTTP requests based on sets of Access Rules. When you make a request to an endpoint that requires the scope foo using an access token granted with that foo scope, introspection will be valid and that token will be cached. The problem comes when a second requests to an endpoint that requires the scope bar is made before the cache has expired. Whether the token is granted or not to the bar scope, introspection will be valid. A patch will be released with v0.38.12-beta.1. Per default, caching is disabled for the oauth2introspection authenticator. When caching is disabled, this vulnerability does not exist. The cache is checked in func (a AuthenticatorOAuth2Introspection) Authenticate(...). From tokenFromCache() it seems that it only validates the token expiration date, but ignores whether the token has or not the proper scopes. The vulnerability was introduced in PR #424. During review, we failed to require appropriate test coverage by the submitter which is the primary reason that the vulnerability passed the review process.

Affected Software

12 affected components
Ory Oathkeeper=0.38.0-beta2
Ory Oathkeeper=0.38.1-beta2
Ory Oathkeeper=0.38.2-beta1
Ory Oathkeeper=0.38.3-beta1
Ory Oathkeeper=0.38.4-beta1
Ory Oathkeeper=0.38.5-beta1
Ory Oathkeeper=0.38.6-beta1
Ory Oathkeeper=0.38.7-beta1
Ory Oathkeeper=0.38.8-beta1
Ory Oathkeeper=0.38.9-beta1
Ory Oathkeeper=0.38.10-beta2
Ory Oathkeeper=0.38.11-beta1

Event History

Jun 22, 2021
CVE Published
via MITRE·07:45 PM
Data Sourced
via MITRE·07:45 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2021-32701?

CVE-2021-32701 has been classified with a high severity due to its potential impact on access control.

2

How do I fix CVE-2021-32701?

To mitigate CVE-2021-32701, users should upgrade to ORY Oathkeeper version 0.38.12 or later.

3

What versions of ORY Oathkeeper are affected by CVE-2021-32701?

CVE-2021-32701 affects ORY Oathkeeper versions 0.38.0-beta2 through 0.38.11-beta1.

4

What types of vulnerabilities does CVE-2021-32701 involve?

CVE-2021-32701 involves vulnerabilities related to improper access control and token validation.

5

Is CVE-2021-32701 a remote exploit vulnerability?

Yes, CVE-2021-32701 can be exploited remotely if the attacker can send requests to the affected endpoints.

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