CVE-2026-33505

Source
https://cve.org/CVERecord?id=CVE-2026-33505
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33505.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-33505
Aliases
Downstream
Related
Published
2026-03-26T18:37:51.222Z
Modified
2026-04-02T13:27:59.228896Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Ory Keto has a SQL injection via forged pagination tokens
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-89"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33505.json"
}
References

Affected packages

Git / github.com/ory/keto

Affected ranges

Type
GIT
Repo
https://github.com/ory/keto
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "26.2.0"
        }
    ]
}

Affected versions

proto/v0.*
proto/v0.10.0-alpha.0
proto/v0.10.0-alpha.0.pre.1
proto/v0.11.0-alpha.0
proto/v0.11.1-alpha.0
proto/v0.12.0-alpha.0
proto/v0.13.0-alpha.0
proto/v0.6.0-alpha.3
proto/v0.7.0-alpha.0
proto/v0.7.0-alpha.1
proto/v0.8.0-alpha.0
proto/v0.8.0-alpha.1
proto/v0.8.0-alpha.2
proto/v0.9.0-alpha.0
v0.*
v0.0.1
v0.1.1-sandbox+oryOS.1
v0.1.2-sandbox+oryOS.2
v0.1.3-sandbox+oryOS.3
v0.1.4-sandbox+oryOS.4
v0.1.5-sandbox+oryOS.5
v0.1.6-sandbox+oryOS.6
v0.1.7-sandbox+oryOS.7
v0.1.8-sandbox+oryOS.8
v0.1.9-sandbox+oryOS.9
v0.10.0-alpha.0
v0.11.0-alpha.0
v0.11.0-alpha.0.pre.1
v0.11.1-alpha.0
v0.12.0-alpha.0
v0.13.0-alpha.0
v0.14.0
v0.2.0-sandbox+oryOS.10
v0.2.1-sandbox+oryOS.10
v0.2.2-sandbox+oryOS.10
v0.2.3-sandbox+oryOS.10
v0.3.0-sandbox
v0.3.1-sandbox
v0.3.10-sandbox
v0.3.3-sandbox
v0.3.4-sandbox
v0.3.5-sandbox
v0.3.6-sandbox
v0.3.7-sandbox
v0.3.8-sandbox
v0.3.9-sandbox
v0.4.0-alpha.1
v0.4.0-sandbox
v0.4.1-beta.1
v0.4.2-alpha.1
v0.4.3-alpha.1
v0.4.3-alpha.2
v0.4.4-alpha.1
v0.4.5-alpha.1
v0.5.0
v0.5.1-alpha.1
v0.5.2
v0.5.3-alpha.1
v0.5.3-alpha.2
v0.5.3-alpha.3
v0.5.4-alpha.1
v0.5.5-alpha.1
v0.5.6-alpha.1
v0.5.7-alpha.1
v0.5.7-alpha.1.pre.0
v0.6.0-alpha.1
v0.6.0-alpha.2
v0.6.0-alpha.3
v0.7.0-alpha.0
v0.7.0-alpha.1
v0.8.0-alpha.0
v0.8.0-alpha.1
v0.8.0-alpha.2
v0.9.0-alpha.0
v25.*
v25.4.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33505.json"