Critical RCE Flaw in GitLab AI Gateway
Score: 4/10

Critical RCE Flaw in GitLab AI Gateway

GitLab released patches for a critical RCE vulnerability (CVE-2026-90970) in the AI Gateway affecting self-hosted environments via improper prompt template neutralization.

Executive Summary

GitLab has issued a critical security patch for its AI Gateway, a component that interfaces GitLab instances with AI models. The vulnerability, tracked as CVE-2026-90970 with a CVSS score of 9.9, affects self-hosted GitLab AI Gateway installations. It allows an authenticated user with Duo Agent Platform access to execute arbitrary commands on the gateway server.

The attack involves escaping the prompt template sandbox through a specially crafted custom flow configuration. While GitLab has already secured its hosted services (GitLab.com and GitLab Dedicated), organizations hosting their own AI Gateway (often for data privacy reasons) must manually update their Docker or Helm deployments to mitigate this risk. A similar class of vulnerability, CVE-2026-1868, was also noted as a previous threat to the same component.

Failure to patch could lead to a total compromise of the AI Gateway, which typically handles sensitive JSON Web Tokens (JWT) and maintains connections to internal GitLab instances and external AI provider infrastructure.

Key Details

Threat Name

CVE-2026-90970

Affects

GitLab AI Gateway 18.1.6 or later, before 19.2.4, GitLab AI Gateway 19.3, before 19.3.2, GitLab AI Gateway 19.4, before 19.4.1, GitLab AI Gateway, GitLab AI Gateway 18.1.6 before 19.2.4, GitLab AI Gateway 19.3 before 19.3.2, GitLab AI Gateway 19.4 before 19.4.1

Adversary

—

MITRE Techniques

—

Malware/Tools

None identified

Report Score

4out of 10
Quality Score
Poor
IOC Quality0
TTP Details4
Detection Guidance2
Enterprise Relevance8
Clarity & Structure9
Technical Depth4

Sources