Skip to main content

OpenSSL CVE-2026-33505

HIGH
SQL Injection (CWE-89)
2026-03-20 https://github.com/ory/keto GHSA-c38g-mx2c-9wf2
7.2
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain pagination encryption secret from configuration or use public default
  2. Delivery
    Craft malicious pagination token with SQL injection payload
  3. Exploit
    Send crafted token to GetRelationships API
  4. Execution
    SQL injection executes in database query
  5. Impact
    Attacker exfiltrates or modifies sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Ory Keto installations where secrets.pagination is not configured, causing fallback to publicly known hard-coded default encryption secret. Attacker with high-privilege access crafts malicious pagination tokens for GetRelationships API to inject SQL. No victim interaction required.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) indicates network-exploitable with low complexity but requires high privileges, yielding a score of 7.2. However, the real-world risk is context-dependent: installations using the default pagination secret effectively reduce the privilege requirement to zero, as the encryption key is publicly known from the source code. The preconditions are specific—the attacker must access the GetRelationships API and pass raw pagination tokens, which may not be possible in architectures where Keto sits behind authorization layers. No EPSS score or KEV status is provided in the intelligence data, suggesting no widespread active exploitation has been observed. The GitHub advisory references indicate vendor acknowledgment and likely patch availability. Organizations that have configured custom pagination secrets face significantly lower risk, while those using defaults face critical exposure. The technical impact is severe (arbitrary SQL execution), but exploitation requires either knowledge of a custom secret or identification of default-secret installations, moderating the overall urgency compared to unauthenticated SQL injection vulnerabilities.

Exploit ScenarioDerived

An attacker discovers a Keto installation using the default pagination secret by testing with tokens crafted using the publicly-known hard-coded key from the source repository. The attacker crafts a malicious pagination token containing SQL injection payloads (e.g., UNION SELECT statements), encrypts it with the known secret, and submits it to the GetRelationships API. Upon decryption and processing by Keto, the malicious SQL executes, allowing the attacker to extract sensitive relationship tuples, modify authorization data, or potentially achieve remote code execution depending on database permissions and configuration.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 20, 2026

Ory Keto, an open-source authorization service, contains a SQL injection vulnerability in its GetRelationships API due to insecure pagination token handling. Attackers who know or can exploit the default hard-coded pagination encryption secret can craft malicious tokens to execute arbitrary SQL queries. The CVSS score of 7.2 reflects high privileges required (PR:H), though the actual risk is elevated when default secrets remain unchanged in production deployments.

RemediationAI

Immediately generate and configure a custom cryptographically secure value for 'secrets.pagination' using a command such as 'openssl rand -base64 32' as described in the GitHub advisory at https://github.com/ory/keto/security/advisories/GHSA-c38g-mx2c-9wf2. This configuration change prevents exploitation by invalidating any pagination tokens created with the known default secret. After implementing this mitigation, upgrade Ory Keto to the latest patched version as soon as possible to address the underlying SQL injection flaw in the pagination implementation. As additional defense-in-depth measures, restrict network access to the GetRelationships API to trusted internal services only and implement input validation at API gateway layers if feasible. Review application logs for suspicious pagination token patterns or SQL errors that may indicate exploitation attempts.

Affected Packages

go github.com/ory/keto fix: 0.14.1-0.20260320140104-e4393662cd2e

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Ory Keto is a Go-based relationship-tuple authorization system that implements permission models. The vulnerability (CWE-89: SQL Injection) resides in the pagination implementation of the GetRelationships API, where pagination tokens are encrypted using a secret configured in 'secrets.pagination'. When this value is not explicitly configured, Keto falls back to a publicly-known hard-coded default secret. Because the token encryption mechanism uses a known key, attackers can decrypt, modify, and re-encrypt tokens containing SQL injection payloads. The affected product is identified by CPE as pkg:go/github.com_ory_keto, indicating the Go package distributed via GitHub. The vulnerability stems from insufficient input validation on pagination tokens after decryption, allowing SQL metacharacters to be injected into database queries.

Know when OpenSSL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 20, 2026 - 20:55 nvd
HIGH 7.2

DescriptionGitHub Advisory

Description

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.

Preconditions

This issue can be exploited when all of the following conditions are met:

  • GetRelationships API is directly or indirectly accessible to the attacker
  • The attacker can pass a raw pagination token to the affected API
  • The configuration value secrets.pagination is not set or known to the attacker

Impact

An attacker can execute arbitrary SQL queries through forged pagination tokens.

Mitigation

As a first line of defense, immediately configure a custom value for secrets.pagination by generating a cryptographically secure random secret, for example:

openssl rand -base64 32

Next, upgrade Keto to a fixed version as soon as possible.

Executive ViewAI

Why It Matters

Ory Keto deployments using default encryption secrets are vulnerable to SQL injection attacks through the GetRelationships API, potentially allowing unauthorized data access or manipulation. This risk is elevated for organizations running unpatched instances in production without secret rotation, as attackers only need knowledge of the default secret to exploit the vulnerability.

Business Impact: High
Compensating Controls
  1. Immediately rotate all default pagination encryption secrets across production deployments. 2) Implement Web Application Firewall (WAF) rules to detect and block suspicious pagination tokens and SQL injection patterns in GetRelationships API requests. 3) Restrict network access to the GetRelationships API endpoint to only authorized internal services using IP allowlisting or VPC isolation. 4) Enable comprehensive API request logging and SQL query auditing to detect exploitation attempts. 5) Consider disabling the GetRelationships API endpoint if functionality permits until patched. 6) Segment Ory Keto database access with least-privilege database credentials.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_ory_keto

Related Vulnerabilities in Ory SQLI in Pagination

View all 3
CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2016-0800 MEDIUM POC
5.9 Mar 01

The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se

CVE-2015-0204 MEDIUM POC
4.3 Jan 09

The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k

CVE-2022-2068 HIGH
7.3 Jun 21

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas

CVE-2015-4000 LOW POC
3.7 May 21

The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2016-2107 MEDIUM POC
5.9 May 05

The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a

CVE-2015-1793 MEDIUM POC
6.5 Jul 09

The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly

CVE-2022-3602 HIGH
7.5 Nov 01

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP5 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP6 Fixed
openSUSE Leap 15.5 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy