Skip to main content

GitLab AI Gateway EUVDEUVD-2026-91651

| CVE-2026-90970 CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-10-02 GitLab GHSA-5295-vp56-jghq
9.9
CVSS 3.1 · Vendor: GitLab
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with Duo Agent Platform access
  2. Delivery
    Submit crafted flow configuration
  3. Exploit
    Escape prompt template sandbox (SSTI)
  4. Execution
    Execute arbitrary commands on AI Gateway
  5. Impact
    Compromise gateway and connected data

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
Exploitation Conditions

Exploitation requires an authenticated GitLab user who has been granted Duo Agent Platform access (PR:L), and the attacker must be able to supply a specially crafted flow configuration whose prompt template escapes the sandbox. The affected deployment must be running GitLab AI Gateway in the vulnerable ranges (18.1.6 up to but not including 19.2.4, 19.3 up to 19.3.2, or 19.4 up to 19.4.1) with the Duo Agent Platform feature enabled. The description's qualifier 'under certain conditions' indicates not every flow configuration or deployment state is exploitable, which limits the realistic attack surface. The main limiting factor is the need for legitimate authenticated Duo Agent Platform access rather than anonymous network reach; organizations that have not enabled Duo Agent Platform are not exposed.

Impact

This is a genuine high-priority vulnerability, not a high-CVSS-but-low-real-risk case. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, score 9.9) describes a network-exploitable, low-complexity flaw requiring only low privileges and no user interaction, with a scope change and full confidentiality/integrity/availability impact - consistent with a prompt-template sandbox escape (CWE-1336 / SSTI) yielding arbitrary command execution on the AI Gateway host. The PR:L rating aligns with the description's requirement for an authenticated user holding Duo Agent Platform access, so exploitation is gated by having a legitimate (though possibly low-tier) account on the platform rather than being open to anonymous internet attackers. No EPSS score, SSVC decision, KEV listing, or POC indicator was provided in the input, so probabilistic exploitation likelihood and confirmed real-world activity cannot be assessed from available data. The phrase 'under certain conditions' in the description introduces uncertainty about whether every deployment is exploitable or only specific flow configurations are - verify exploitability prerequisites with GitLab. Overall: credible critical-severity RCE in a security-relevant component, warranting prompt patching wherever Duo Agent Platform is enabled, but with no evidence of active exploitation at time of analysis.

Exploit ScenarioDerived

An attacker who already holds an authenticated GitLab account with Duo Agent Platform access creates a specially crafted flow configuration whose prompt template breaks out of the templating sandbox. The injected template directives are evaluated server-side, resulting in arbitrary command execution on the AI Gateway. No public exploit code was identified in the provided data, and the low attack complexity (AC:L) means a working technique would be straightforward to reuse once known.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.9% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 02, 2026

Remote command execution on the GitLab AI Gateway is achievable by an authenticated user who has been granted Duo Agent Platform access, by supplying a specially crafted flow configuration whose prompt template escapes the intended sandbox (CVE-2026-90970). The flaw is a server-side template injection (CWE-1336) rated CVSS 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H), meaning a single low-privileged authenticated account yields high confidentiality, integrity, and availability impact that extends beyond the vulnerable component's own security scope. Affected deployments are AI Gateway versions 18.1.6 up to but not including 19.2.4, 19.3 before 19.3.2, and 19.4 before 19.4.1; GitLab has remediated the issue and no public exploit identified at time of analysis, though the requirement for Duo Agent Platform to be enabled and for the attacker to hold a legitimate authenticated account with access to it materially narrows the exposed population.

RemediationAI

Vendor-released patch: upgrade the GitLab AI Gateway to 19.2.4, 19.3.2, or 19.4.1 (depending on your release train), per the advisory at https://gitlab.com/gitlab-org/gitlab/-/work_items/628842; applying the fixed build is the only complete remediation because the defect is in the template rendering logic itself and cannot be fully closed by configuration. Where an immediate upgrade is not possible, reduce exposure by disabling the Duo Agent Platform feature entirely if it is not in active use - this removes the vulnerable flow-configuration path, at the cost of losing all Duo agent functionality - or, if it must remain enabled, restrict the ability to create or edit custom flow configurations to a small, trusted set of users and audit for template-expression syntax in existing flow definitions and prompt templates, since the attacker must already hold authenticated Duo Agent Platform access. Because the gateway usually holds model-provider credentials and internal network reach (the vector's S:C reflects impact beyond the component), network-segment the AI Gateway, replace any provider or service credentials it can reach, and review gateway logs for unexpected command invocations or anomalous template payloads in flow configurations as a compensating detective control. Rotate secrets held by the gateway after any suspected exploitation, as command execution on the gateway exposes those credentials even after patching.

Affected VersionsENISA

GitLab AI Gateway 19.3 <19.3.2
GitLab AI Gateway 19.4 <19.4.1
GitLab AI Gateway 18.1.6 <19.2.4

Affected Packages

euvd gitlab_ai_gateway fix: 19.2.4, 19.3.2, 19.4.1

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

The GitLab AI Gateway is the component that mediates requests between GitLab and large language model backends, rendering prompt templates and executing user-defined flows for the Duo Agent Platform. The root cause is CWE-1336, Improper Neutralization of Special Elements Used in a Template Engine, i.e. classic server-side template injection: a crafted flow configuration can inject template directives into a prompt template that are evaluated by the rendering engine rather than treated as inert text, letting the attacker break out of the prompt template sandbox and reach the underlying runtime, where arbitrary commands can be executed. The CVSS vector carries S:C (scope changed), reflecting that compromise of the AI Gateway can affect resources beyond the component's own authority - a realistic concern because the gateway typically holds credentials and network reach into model providers and internal services. The CPE cpe:2.3:a:gitlab:gitlab_ai_gateway:*:*:*:*:*:*:*:* with a wildcard version is consistent with a component distributed alongside GitLab and versioned independently of the GitLab application itself. Exploitation is gated by PR:L (authenticated) and by the Duo Agent Platform feature being enabled and granted to the attacker; the vendor's 'under certain conditions' qualifier indicates that not every flow configuration or deployment state reaches the vulnerable code path. Reference tags associate the issue with SSTI and information disclosure as well as the command-execution impact.

Know when Gitlab Ai 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

Vendor (GitLab) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

Network-reachable gateway (AV:N), authenticated Duo Agent user (PR:L), no interaction (UI:N); sandbox escape crosses a trust boundary (S:C) yielding full command execution (C/I/A:H).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (GitLab).

CVSS VectorVendor: GitLab

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

Lifecycle Timeline

2
Patch available
Oct 02, 2026 - 15:17 EUVD
CVE Published
Oct 02, 2026 - 14:34 cve.org
CRITICAL 9.9

DescriptionCVE.org

GitLab has remediated a vulnerability in the GitLab AI Gateway component affecting all versions of the AI Gateway from 18.1.6 before 19.2.4, 19.3 before 19.3.2, and 19.4 before 19.4.1 that, under certain conditions, could have allowed an authenticated user with Duo Agent Platform access to escape the prompt template sandbox via a specially crafted flow configuration, resulting in arbitrary command execution on the AI Gateway.

Executive ViewAI

Why It Matters

A critical remote code execution flaw in GitLab AI Gateway (CVE-2026-90970) allows any authenticated user with Duo Agent Platform access to run arbitrary commands on the gateway host by submitting a crafted flow configuration. Because exploitation requires a legitimate account and the Duo Agent Platform feature to be enabled, the exposed population is limited to organizations running those deployments rather than the general internet, but any single low-privileged user inside that population can compromise the confidentiality, integrity, and availability of systems beyond the gateway itself. Leadership should care because the affected service sits inside the development pipeline, where a successful attack could expose source code, credentials, and CI/CD infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 40% exploitable
Prevalence
Medium
GitLab widely used, but AI Gateway with Duo Agent Platform is an opt-in newer component
Data Quality
4 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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