Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ory/keto
  4. ›
  5. CVE-2026-33505

CVE-2026-33505: Ory Keto has a SQL injection via forged pagination tokens

March 20, 2026

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.

References

  • github.com/advisories/GHSA-c38g-mx2c-9wf2
  • github.com/ory/keto
  • github.com/ory/keto/security/advisories/GHSA-c38g-mx2c-9wf2
  • nvd.nist.gov/vuln/detail/CVE-2026-33505

Code Behaviors & Features

Detect and mitigate CVE-2026-33505 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.14.1-0.20260320140104-e4393662cd2e

Fixed versions

  • 0.14.1-0.20260320140104-e4393662cd2e

Solution

Upgrade to version 0.14.1-0.20260320140104-e4393662cd2e or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

go/github.com/ory/keto/CVE-2026-33505.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:19:16 +0000.