CVE-2021-32701: Incorrect Authorization in ORY Oathkeeper

github.com/ory/oathkeeper Updated 02 Oct 2025

Summary

21/08/2024
Yes i
High
7.5

CVE-2021-32701: Incorrect Authorization in ORY Oathkeeper in github.com/ory/oathkeeper. Affects github.com/ory/oathkeeper versions >= 0.38.0-beta.2, < 0.38.12-beta.1. Fixed in 0.38.12-beta.1. How to fix ↓

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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

ORY Oathkeeper is a Go package that provides an authentication and authorization proxy for APIs. It acts as a reverse proxy, intercepting requests and enforcing access control policies. The package is widely used in Go applications to secure API endpoints and manage authentication and authorization workflows. However, a vulnerability has been discovered in the package that allows incorrect authorization, potentially leading to unauthorized access to protected resources.

Vulnerability Detail

The vulnerability in ORY Oathkeeper arises from a flaw in the authorization mechanism. Due to this flaw, the package may incorrectly authorize requests, granting access to protected resources to unauthorized users. This can result in a breach of confidentiality, integrity, and availability of sensitive data or functionality. The vulnerability affects versions 0.38.0-beta.2 to 0.38.12-beta.1 of the package.

How To Fix

Latest published version: v0.40.9 as of 23 Oct 2026

go get github.com/ory/oathkeeper@v0.40.9

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

If you need the minimum change

0.38.12-beta.1

This is the first release that contains the fix.

go get github.com/ory/oathkeeper@v0.38.12-beta.1

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

Conclusion

ORY Oathkeeper versions 0.38.0-beta.2 to 0.38.12-beta.1 are affected by an incorrect authorization vulnerability. Users should upgrade to version 0.38.12-beta.1 or later to mitigate the risk of unauthorized access to protected resources.

See every vulnerability recorded for github.com/ory/oathkeeper →

Share this vulnerability

FAQ

ORY Oathkeeper is a Go package that provides an authentication and authorization proxy for APIs. It helps secure API endpoints and manage authentication and authorization workflows.

The vulnerability allows incorrect authorization, potentially granting unauthorized access to protected resources. This can lead to a breach of sensitive data or functionality.

Versions 0.38.0-beta.2 to 0.38.12-beta.1 of ORY Oathkeeper are affected by this vulnerability.

To fix the vulnerability, upgrade to version 0.38.12-beta.1 or later of ORY Oathkeeper by updating the package import statement in your application code and fetching the latest version using the package manager.

No, there is no known workaround for this vulnerability. It is recommended to upgrade to a fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/ory/oathkeeper.

How To Fix

Latest published version: v0.40.9 as of 23 Oct 2026

go get github.com/ory/oathkeeper@v0.40.9

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

If you need the minimum change

0.38.12-beta.1

This is the first release that contains the fix.

go get github.com/ory/oathkeeper@v0.38.12-beta.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