CVE-2026-33503: Ory Kratos - SQL Injection
- Cve: CVE-2026-33503
- Name: Ory Kratos - SQL Injection
- Description: 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.
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data leakage or modification.
- Remediation: Configure a custom cryptographically secure pagination secret and upgrade to version 26.2.0 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: sql_injection
- Requirements: Attacker must know or guess the pagination secret
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00273
- Epss percentile: 0.19915
- Assignee: [email protected]
- Published at: 2026-03-26T18:16:30Z
- Age in days: 243
- Modified at: 2026-06-17T10:37:36Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-33503
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/ory/kratos/security/advisories/GHSA-hgx2-28f8-6g2r | nvd | Mitigation, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ory:kratos | < 26.2.0 | no | nvd | /v1/products/ory/kratos |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ory/kratos | package, security_advisory | yes | /v1/repositories/ory/kratos |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts