{"id":"CVE-2026-33503","published":"2026-03-26T17:32:16Z","modified":"2026-04-01T03:55:20Z","title":"Ory Kratos has a SQL injection via forged pagination tokens","vendor":"ory","product":"kratos","tier":"tail","description":{"text":"Ory Kratos is an identity, user management and authentication system for cloud services. Prior to version 26.2.0, the ListCourierMessages Admin API in Ory Kratos 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, Kratos falls back to a 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. As a first line of defense, immediately configure a custom value for `secrets.pagination` by generating a cryptographically secure random secret. Next, upgrade Kratos** to a fixed version, 26.2.0 or later, as soon as possible.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00273,"percentile":0.19941,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/ory/kratos/security/advisories/GHSA-hgx2-28f8-6g2r","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.99},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"ory","affectedVersions":[{"vendor":"ory","product":"kratos","versions":["< 26.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-31T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/ory/kratos","vulnerableRanges":["<1.3.1-0.20260320110106-9d7085948039"],"patched":["1.3.1-0.20260320110106-9d7085948039"],"from":["GHSA-hgx2-28f8-6g2r","GO-2026-4801"],"provenance":"source"}],"summary":{"text":"Ory Kratos, the identity and authentication system, contains a SQL injection flaw in the ListCourierMessages Admin API, caused by weaknesses in its pagination token handling, in versions before 26.2.0. An attacker with network access who knows the pagination encryption secret (set via secrets.pagination, or the publicly known default when that value is unset) and holds high privileges can forge malicious pagination tokens to inject SQL.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:29Z"},"euvd":{"id":"EUVD-2026-20069","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-45042","published":"2024-09-26","fixed":"1.3.0","kev":false,"link":{"from":"CVE-2024-45042","to":"CVE-2026-33503","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/ory/kratos","fromFixed":"1.3.0","toFixed":"1.3.1-0.20260320110106-9d7085948039","daysApart":546}]}},{"cve":"CVE-2026-33503","published":"2026-03-26","fixed":"1.3.1-0.20260320110106-9d7085948039","kev":false}],"package":"Go:github.com/ory/kratos"}}