Advisory

GHSA-4mq7-pvjg-xp2r

Also known as: CVE-2026-33496, GO-2026-4799

Summary

Ory Oathkeeper has an authentication bypass by cache key confusion

Details

Description

Ory Oathkeeper is vulnerable to authentication bypass due to cache key confusion. The oauth2_introspection authenticator cache does not distinguish tokens that were validated with different introspection URLs. An attacker can therefore legitimately use a token to prime the cache, and subsequently use the same token for rules that use a different introspection server.

Preconditions

Ory Oathkeeper has to be configured with multiple oauth2_introspection authenticator servers, each accepting different tokens. The authenticators also must be configured to use caching. An attacker has to have a way to gain a valid token for one of the configured introspection servers.

Mitigation

Ory Oathkeeper now includes the introspection server URL in the cache key, preventing confusion of tokens.

Update to the patched version of Ory Oathkeeper. If that is not immediately possible, disable caching for oauth2_introspection authenticators.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-20 20:51 UTC
Modified
2026-03-27 21:18 UTC

Affected packages and fixes

github.com/ory/oathkeeper

Go · All systems

Affected

  • introduced 0, fixed 0.40.10-0.20260320084801-198a2bc82a99 (semver)

Fixed versions

0.40.10-0.20260320084801-198a2bc82a99

Fix

  • Fixed version 0.40.10-0.20260320084801-198a2bc82a99
    go get github.com/ory/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences