# CVE-2026-33505: Ory Keto 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-03-20T20:55:44.000Z
- Modified: 2026-06-17T10:37:37.043Z
- Also known as: GHSA-c38g-mx2c-9wf2, GO-2026-4800
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Ory Keto is am open source authorization server for managing permissions at scale. Prior to version 26.2.0, the GetRelationships API in Ory Keto is vulnerable to SQL injection due to flaws in its pagination implementation. Pagination tokens are encrypted using the secret configured in `secrets.pagination`. An attacker who knows this secret can craft their own tokens, including malicious tokens that lead to SQL injection. If this configuration value is not set, Keto falls back to a hard-coded default pagination encryption secret. Because this default value is publicly known, attackers can generate valid and malicious pagination tokens manually for installations where this secret is not set. This issue can be exploited when GetRelationships API is 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 not set or 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 Keto to a fixed version, 26.2.0 or later, as soon as possible.

(As written by CVE List.)

## Affected

- ory keto: < 26.2.0; before 26.2.0
- github.com/ory/keto (Go): before 0.14.1-0.20260320140104-e4393662cd2e

## 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/keto/security/advisories/GHSA-c38g-mx2c-9wf2> (advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33505> (advisory)
- <https://github.com/ory/keto> (package)

## Sources

- CVE List: [CVE-2026-33505](https://www.cve.org/CVERecord?id=CVE-2026-33505), CVE Terms of Use, modified 2026-03-30
- GitHub Advisory Database: [GHSA-c38g-mx2c-9wf2](https://github.com/advisories/GHSA-c38g-mx2c-9wf2), CC-BY-4.0, modified 2026-03-27
- Go Vulnerability Database: [GO-2026-4800](https://pkg.go.dev/vuln/GO-2026-4800), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-33505](https://nvd.nist.gov/vuln/detail/CVE-2026-33505), Public domain, modified 2026-06-17

---

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