Skip to main content
VulnerabilityPublished

CVE-2026-33504: ory hydra · SQL Injection

Affects ory hydraSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.2 High : upgrade to 26.2.0 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
7.2High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
oryhydraAffected
  • <26.2.0
Fixed in
  • 26.2.0
GitHubory/hydrapkg:github/ory/hydraOther threatsAffected
  • <26.2.0
Fixed in
  • 26.2.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. 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.
  2. Upgrade Ory Hydra to version 26.2.0 or later, which contains the patch addressing this SQL injection vulnerability.
  3. Restrict access to the affected admin APIs (listOAuth2Clients, listOAuth2ConsentSessions, listTrustedOAuth2JwtGrantIssuers) to trusted administrators only, using network segmentation, firewall rules, and strong authentication mechanisms.
  4. Monitor logs and audit trails for unusual or unauthorized API access patterns, especially attempts to use malformed pagination tokens.
  5. Conduct regular security reviews and penetration testing focused on OAuth2 server components to detect similar injection or access control issues.
  6. Implement database-level protections such as least privilege for the Hydra database user and query parameterization where possible.
  7. 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.

References

Community reviews

Loading reviews…