Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-33504

Ory Hydra has a SQL injection via forged pagination tokens
Back to all
CVE

CVE-2026-33504

Ory Hydra has a SQL injection via forged pagination tokens

Description

Following Admin APIs in Ory Hydra are vulnerable to SQL injection due to flaws in its pagination implementation:

  • listOAuth2Clients
  • listOAuth2ConsentSessions
  • listTrustedOAuth2JwtGrantIssuers

Pagination tokens are encrypted using the secret configured in secrets.pagination. If this value is not set, Hydra falls back to using secrets.system. An attacker who knows this secret can craft their own tokens, including malicious tokens that lead to SQL injection.

Preconditions

This issue can be exploited when the following conditions are met:

  • One or more admin APIs listed above are directly or indirectly accessible to the attacker
  • The attacker can pass a raw pagination token to the affected API
  • The configuration value secrets.pagination is set and known to the attacker, or secrets.pagination is not set and secrets.system is known to the attacker

Impact

An attacker can execute arbitrary SQL queries through forged pagination tokens.

Mitigation

As a first line of defense, immediately configure a custom value for secrets.pagination by generating a cryptographically secure random secret, for example:

openssl rand -base64 32

Next, upgrade Hydra to the fixed version as soon as possible.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.2
-
3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
C
H
U
7.2
-
3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/ory/hydra/security/advisories/GHSA-r9w3-57w2-gch2, https://nvd.nist.gov/vuln/detail/CVE-2026-33504, https://github.com/ory/hydra

Severity

7.2

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.2
EPSS Probability
0.00014%
EPSS Percentile
0.0294%
Introduced Version
0,v2.0.0-20250707074937-20d419bfed06,v25.4.0,v2.0.0-20250627124544-cbf14c0b9c76,v0.0.0-20260203100020-a97d19286a70,v0.0.0-20250620090327-130068d3bd0a,v0.0.722
Fix Available
2.3.1-0.20260320110106-0b84568fffcc,v2.0.0-20260320084714-f9af4a197b1d,v26.2.0,v0.0.0-20260320084709-aa181d63699e,26.2.0-r0

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading