{"cve":"CVE-2026-33504","nvd":{"published":"2026-03-26T18:16:31.060","modified":"2026-06-17T10:37:36.940","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2},"cwes":["CWE-89"],"references":["https://github.com/ory/hydra/security/advisories/GHSA-r9w3-57w2-gch2"],"products":["ory:hydra"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-33504","score":0.00364,"percentile":0.30199,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r9w3-57w2-gch2","url":"https://osv.dev/vulnerability/GHSA-r9w3-57w2-gch2","summary":"Ory Hydra has a SQL injection via forged pagination tokens","modified":"2026-09-10T03:50:40.762451028Z","packages":[{"ecosystem":"Go","name":"github.com/ory/hydra","purl":"pkg:golang/github.com/ory/hydra","ranges":["<=1.11.10"],"fixed":[]},{"ecosystem":"Go","name":"github.com/ory/hydra/v2","purl":"pkg:golang/github.com/ory/hydra/v2","ranges":["<2.3.1-0.20260320110106-0b84568fffcc"],"fixed":["2.3.1-0.20260320110106-0b84568fffcc"]}]},{"id":"GO-2026-4807","url":"https://osv.dev/vulnerability/GO-2026-4807","summary":"Ory Hydra has a SQL injection via forged pagination tokens in github.com/ory/hydra","modified":"2026-03-27T20:14:19.157Z","packages":[{"ecosystem":"Go","name":"github.com/ory/hydra","purl":"pkg:golang/github.com/ory/hydra","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/ory/hydra/v2","purl":"pkg:golang/github.com/ory/hydra/v2","ranges":["<2.3.1-0.20260320110106-0b84568fffcc"],"fixed":["2.3.1-0.20260320110106-0b84568fffcc"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}