OpenSSL
CVE-2026-33504
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain pagination secret from configuration
-
DeliveryCraft malicious pagination token with SQL payload
-
ExploitSend token to vulnerable admin API endpoint
-
ExecutionSQL injection executes in database query
-
ImpactAttacker 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 | Requires high-privilege admin API access to Ory Hydra. Attacker must know the pagination secret (configured in |
| Impact | The real-world risk is moderate despite the 7.2 CVSS score. The attack complexity is low (AC:L) and network-accessible (AV:N), but requires high privileges (PR:H) and knowledge of the cryptographic secret used for token encryption. This significantly limits the attack surface to scenarios where admin credentials are compromised, secrets are leaked, or insecure default configurations persist. No EPSS score or KEV listing is provided in the data, suggesting no active widespread exploitation has been observed. The primary risk exists in environments where admin APIs are exposed without additional authentication layers or where secret management practices are weak. Organizations using default secrets or exposing admin endpoints to untrusted networks face elevated risk. |
| Exploit ScenarioDerived | An attacker who has obtained the secrets.pagination value through configuration file exposure, environment variable leakage, or insider access crafts a malicious pagination token containing SQL injection payloads. They submit this forged token to the listOAuth2Clients admin API endpoint, which decrypts and processes the token, executing arbitrary SQL commands such as extracting OAuth client secrets, modifying consent records, or escalating privileges within the Hydra database. Since the API is network-accessible with low complexity, successful exploitation requires only knowledge of the secret and access to the admin endpoint. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
Ory Hydra, an OAuth 2.0 and OpenID Connect provider, contains a SQL injection vulnerability in three admin APIs (listOAuth2Clients, listOAuth2ConsentSessions, listTrustedOAuth2JwtGrantIssuers) due to insecure pagination token handling. Attackers who know the pagination secret can craft malicious encrypted tokens to execute arbitrary SQL queries. The CVSS score of 7.2 requires high privileges (PR:H), but successful exploitation grants full database access with high confidentiality, integrity, and availability impact.
RemediationAI
Immediately generate a new cryptographically secure random secret using 'openssl rand -base64 32' and configure it as secrets.pagination in the Hydra configuration to prevent token forgery. Upgrade to the patched version of Ory Hydra as specified in the GitHub security advisory at https://github.com/ory/hydra/security/advisories/GHSA-r9w3-57w2-gch2 as soon as possible. As defense-in-depth measures, restrict network access to admin APIs to trusted IP ranges only, implement additional authentication/authorization layers before admin endpoints, rotate all existing pagination tokens after updating the secret, and audit database logs for suspicious queries that may indicate prior exploitation.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects the Go-based Ory Hydra OAuth/OIDC server (pkg:go/github.com_ory_hydra). The root cause is CWE-89 (SQL Injection) in the pagination implementation where tokens are encrypted using secrets.pagination or secrets.system as a fallback. The flaw allows authenticated administrators or attackers with secret knowledge to bypass input sanitization by forging encrypted pagination tokens that contain SQL payloads. When these tokens are decrypted and processed by the admin APIs, the malicious SQL is executed against the backend database without proper parameterization or validation.
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
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Description
Following Admin APIs in Ory Hydra are vulnerable to SQL injection due to flaws in its pagination implementation:
- listOAuth2Clients
- listOAuth2ConsentSessions
- listTrustedOAuth2JwtGrantIssuers
Pagination tokens are encrypted using the secret configured in secrets.pagination. If this value is not set, Hydra falls back to using secrets.system. An attacker who knows this secret can craft their own tokens, including malicious tokens that lead to SQL injection.
Preconditions
This issue can be exploited when the following conditions are met:
- One or more admin APIs listed above are directly or indirectly accessible to the attacker
- The attacker can pass a raw pagination token to the affected API
- The configuration value
secrets.paginationis set and known to the attacker, orsecrets.paginationis not set andsecrets.systemis 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 32Next, upgrade Hydra to the fixed version as soon as possible.
Executive ViewAI
Ory Hydra deployments are vulnerable to SQL injection attacks that could compromise the entire authentication database if an attacker obtains the pagination secret. This affects any organization using Hydra as their OAuth 2.0/OpenID Connect provider, potentially exposing user credentials, tokens, and consent records. Immediate action is required to assess exposure and implement protective measures until a patch becomes available.
Restrict admin API access via network segmentation and firewall rules; implement Web Application Firewall (WAF) rules to detect and block malformed or suspicious pagination tokens; rotate pagination secrets immediately; disable the three vulnerable admin APIs (listOAuth2Clients, listOAuth2ConsentSessions, listTrustedOAuth2JwtGrantIssuers) if not essential to operations; enable database activity monitoring and alerting for unusual query patterns; implement strict role-based access control limiting who can access Hydra admin endpoints; regularly audit and monitor access logs for unauthorized API calls.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)GitHub Advisory
Related Vulnerabilities in Ory SQLI in Pagination
View all 3The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri
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
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
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
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
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas
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
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
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
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
A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig
Same weakness CWE-89 – SQL Injection
View allVendor 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 |
GHSA-r9w3-57w2-gch2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB