# CVE-2026-33504: Ory Hydra has a SQL injection via forged pagination tokens

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-03-20T20:55:04.000Z
- Modified: 2026-09-10T03:50:40.762Z
- Also known as: GHSA-r9w3-57w2-gch2, GO-2026-4807
- Related: CGA-f7mr-g33h-m8mg
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ory hydra: < 26.2.0; before 26.2.0
- github.com/ory/hydra (Go): up to 1.11.10; all versions
- github.com/ory/hydra/v2 (Go): before 2.3.1-0.20260320110106-0b84568fffcc

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ory/hydra/security/advisories/GHSA-r9w3-57w2-gch2> (advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33504> (advisory)
- <https://github.com/ory/hydra> (package)

## Sources

- CVE List: [CVE-2026-33504](https://www.cve.org/CVERecord?id=CVE-2026-33504), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-r9w3-57w2-gch2](https://github.com/advisories/GHSA-r9w3-57w2-gch2), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4807](https://pkg.go.dev/vuln/GO-2026-4807), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33504](https://nvd.nist.gov/vuln/detail/CVE-2026-33504), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33504 · Whole record: https://cve.day/CVE-2026-33504.json · Rebuilt by cve.day 2026-11-25T22:59:17.093Z
