Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain position to influence SAML assertion attributes
-
DeliveryCraft assertion value with SQL injection payload
-
ExploitGateway interpolates value into datastore query
-
ExecutionUnprepared query executes on backend DB
-
ImpactRead/modify data or disrupt database
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 | Exploitation requires the Okta Access Gateway to be configured with an 'advanced mode' datastore, where SAML assertion attribute values are interpolated directly into a backend database query string prior to statement preparation - this is the specific non-default feature that must be enabled. The attacker must be able to control or influence the SAML assertion attribute values consumed by the gateway (consistent with PR:L: a position in the federation/authentication flow rather than full anonymous access). This is NOT a default-configuration remote-unauthenticated flaw: deployments not using advanced-mode datastores are not exposed, which materially limits the affected population and aligns with the low EPSS and SSVC 'Exploitation: none / Automatable: no' signals. |
| Impact | This is a genuine SQL injection (CWE-89) in Okta Access Gateway where SAML assertion attribute values are interpolated directly into query strings before statement preparation in advanced-mode datastore configurations. The vendor CVSS of 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) reflects full read/write/availability impact against the backend database with a scope change. However, the corroborating exploitation signals are notably LOW: EPSS is only 0.24% (15th percentile), CISA SSVC records Exploitation: none, Automatable: no, and Technical Impact: partial (not total), and there is no KEV listing and no public exploit code. There is a real tension here worth flagging: the SSVC 'Technical Impact: partial' assessment conflicts with the vendor's C:H/I:H/A:H 'total' impact rating - the vendor scores it as maximally impactful while CISA's framework scores only partial technical impact, suggesting the practical, default-config exploitability is more constrained than the 9.9 implies. The PR:L requirement (attacker must be able to influence SAML assertion values, i.e. some authenticated position in the federation flow) and the dependency on the non-default 'advanced mode datastore' feature further temper real-world urgency. Net: patch-worthy and legitimately high-severity where the advanced-mode datastore is in use, but not an imminent mass-exploitation threat - treat as scheduled remediation, prioritized for tenants that have enabled advanced-mode datastores. |
| Exploit ScenarioDerived | An attacker who can influence the attribute values in a SAML assertion consumed by an Okta Access Gateway configured with an advanced-mode datastore crafts an assertion containing SQL metacharacters/payload in an interpolated attribute. When the gateway substitutes the unsanitized value into the datastore query string prior to preparation, the payload executes against the configured backend database, enabling data read, modification, or disruption. No public exploit code is identified at time of analysis, and exploitation requires the non-default advanced-mode datastore configuration plus the ability to control assertion values (PR:L). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 22, 2026
SQL injection in Okta Access Gateway versions prior to 2026.9.1 allows a participant in the SAML federation/authentication flow (CVSS vector PR:L) to execute unintended SQL statements against the configured backend database whenever the gateway is deployed with an 'advanced mode' datastore. The flaw arises because SAML assertion attribute values are interpolated directly into the query string before statement preparation, so attacker-influenced assertion data becomes part of the SQL rather than bound parameter data, and the scope change (S:C) reflects that compromise of the backend database crosses a security boundary beyond the gateway itself. Impact is high for confidentiality, integrity and availability, but exposure is materially limited: only deployments using advanced-mode datastores are affected, CISA SSVC records Exploitation: none and Automatable: no, EPSS is 0.24% (15th percentile, low), and no public exploit code has been identified at time of analysis.
Earlier versions of this analysis (1)
SQL injection in Okta Access Gateway's advanced mode datastore configuration exposes backend databases to arbitrary query execution by attackers who hold a valid SAML identity. The gateway interpolates SAML assertion attribute values directly into query strings prior to preparation, bypassing parameterization entirely. The CVSS scope change (S:C) reflects that the primary damage accrues to the configured backend database rather than the gateway itself; no public exploit has been identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade Okta Access Gateway to 2026.9.1 or later, which is the first fixed release per the vendor advisory (https://trust.okta.com/security-advisories/improper-handling-of-saml-assertion-attributes-in-okta-access-gateway-advanced-mode-datastores-cve-2026-78623). If immediate upgrade is not possible, the most effective compensating control is to remove the exposure entirely: stop using 'advanced mode' datastore configurations and fall back to standard datastore mode, accepting the loss of custom query functionality until patching is complete. Where advanced mode must remain, tighten the datastore account's privileges so the gateway can only read/write the specific tables and columns it needs - note this reduces blast radius but does not prevent injected SQL from executing within the granted scope. Additionally, restrict network reachability from the gateway to the backend database (firewall/allow-list to the single required DB endpoint), map only the specific SAML assertion attributes the deployment actually requires rather than passing through arbitrary attributes from the IdP, and monitor database logs for anomalous or malformed query patterns originating from the gateway. Each of these measures is a containment control, not a fix, and none should be treated as a substitute for upgrading to 2026.9.1.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Okta Access Gateway is a federation/SSO proxy that consumes SAML assertions from identity providers and can persist or query identity and session data in a backend database. In its 'advanced mode' datastore configuration, administrators supply custom SQL query templates into which the gateway substitutes values - including attribute values taken from incoming SAML assertions - by string interpolation before the statement is prepared. This is a classic CWE-89 SQL injection root cause: the values are never sanitized or parameterized, so they are effectively trusted as query syntax rather than treated as data, and any backend the gateway's datastore account can reach (tables, other schemas, potentially other databases via the account's privileges) is exposed to unintended execution. The scope change (S:C) is consistent with the injection pivoting from the gateway component to the underlying database security context. The affected component per CPE is cpe:2.3:a:okta:access_gateway:*:*:*:*:*:*:*:* covering all builds below the fixed 2026.9.1 release, and the vendor classifies the underlying issue as improper handling of SAML assertion attributes in advanced mode datastores (EUVD-2026-74165).
Know when Access Gateway 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:L/UI:N/S:C/C:H/I:H/A:H
Attacker must control SAML assertion values in a federation flow (PR:L); SQL execution reaches a separate backend database (S:C) with full read/write/availability impact (C:H/I:H/A:H).
Primary rating from Vendor (okta).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
The Okta Access Gateway does not sanitize SAML assertion values before interpolating them into database queries in the advanced mode datastore configuration. The unsanitized values are substituted directly into the query string prior to preparation, resulting in unintended SQL execution against the configured backend database.
Executive ViewAI
Okta Access Gateway, specifically deployments using advanced-mode datastores, contains a critical authenticated SQL injection that can allow a SAML federation participant to compromise the backend database. Because this gateway sits in the authentication path, successful exploitation could undermine identity assurance, expose sensitive data, and disrupt downstream application access for the organization. Leadership should prioritize patching affected instances to 2026.9.1 and confirm which gateways use advanced-mode datastores, while noting that no public exploit identified at time of analysis and exposure is limited to those configurations.
Apply vendor patch.
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.
More in Access Gateway
View allA command injection vulnerability in the cookieDomain and relayDomain parameters of Okta Access Gateway before 2020.9.3
Code execution with the privileges of the management console is possible in Okta Access Gateway releases before 2026.9.1
Authenticated administrative users of Okta Access Gateway can achieve arbitrary command execution on the underlying gate
PHP code injection in Okta Access Gateway (all versions prior to 2026.9.1) allows an authenticated administrator to exec
OS command injection in Okta Access Gateway (versions prior to 2026.9.1) allows an authenticated high-privileged local u
LDAP injection in Okta Access Gateway versions before 2026.9.1 allows a network-authenticated attacker to manipulate LDA
Authorization bypass in Okta Access Gateway (all versions before 2026.9.1) allows authenticated network users to circumv
Header injection authentication bypass in Okta Access Gateway (versions prior to 2026.9.1) allows unauthenticated networ
Unspecified vulnerability in Citrix Access Gateway Standard Edition 5.0.x before 5.0.4.223524 allows remote attackers to
Path traversal in Okta Access Gateway's backup restore function (all versions prior to 2026.9.1) allows an authenticated
Nginx directive injection in Okta Access Gateway before version 2026.9.1 enables an authenticated administrator to injec
Arbitrary file write in Okta Access Gateway (all versions before 2026.9.1) allows a highly privileged authenticated atta
EUVD-2026-74165
GHSA-9j47-j79g-74hf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB