CVE-2026-33504: ory hydra · SQL Injection
Affects ory hydraSource CVE Database V5
Not known to be exploited · CVSS 7.2 High : upgrade to 26.2.0 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 26.2.0
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 26 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade hydra and ory/hydra to 26.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| oryhydra | Affected
| Fixed in
|
GitHubory/hydrapkg:github/ory/hydraOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately configure a strong, cryptographically secure random secret for the `secrets.pagination` configuration parameter to prevent attackers from forging valid pagination tokens. Avoid using default or system secrets.
- Upgrade Ory Hydra to version 26.2.0 or later, which contains the patch addressing this SQL injection vulnerability.
- Restrict access to the affected admin APIs (listOAuth2Clients, listOAuth2ConsentSessions, listTrustedOAuth2JwtGrantIssuers) to trusted administrators only, using network segmentation, firewall rules, and strong authentication mechanisms.
- Monitor logs and audit trails for unusual or unauthorized API access patterns, especially attempts to use malformed pagination tokens.
- Conduct regular security reviews and penetration testing focused on OAuth2 server components to detect similar injection or access control issues.
- Implement database-level protections such as least privilege for the Hydra database user and query parameterization where possible.
- Educate DevOps and security teams about the importance of secret management and timely patching of identity infrastructure components.
Description
Ory Hydra is an OAuth 2.0 Server and OpenID Connect Provider. Prior to version 26.2.0, the listOAuth2Clients, listOAuth2ConsentSessions, and listTrustedOAuth2JwtGrantIssuers Admin APIs in Ory Hydra are vulnerable to SQL injection due to flaws in its pagination implementation. 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. This issue can be exploited when 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; and 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. An attacker can execute arbitrary SQL queries through forged pagination tokens. As a first line of defense, immediately configure a custom value for `secrets.pagination` by generating a cryptographically secure random secret. Next, upgrade Hydra to the fixed version, 26.2.0 as soon as possible.