GitLab released security updates to fix a critical flaw in its AI Gateway that allowed logged-in users with Duo Agent Platform access to execute arbitrary commands on self-hosted instances. Tracked as CVE-2026-90970, the vulnerability received a maximum-severity CVSS score of 9.9 out of 10 upon its disclosure on October 2.
Prompt Sandbox Escape Details
The security issue stems from improper handling within the prompt template of a custom flow, a feature used to construct multi-step automated workflows on the Duo Agent Platform. According to GitLab, an attacker with valid platform access could craft a specific flow configuration to break out of the prompt template sandbox, leading to command execution on the host gateway.
The flaw specifically impacts self-hosted AI Gateway installations, which organizations use to process AI requests while keeping prompt data inside their own network boundaries. Self-hosted instances carry sensitive credentials, including signing keys for JSON Web Tokens, and maintain active network connections to both internal GitLab infrastructure and third-party AI model providers. Security researcher invisiblemeerkat reported the issue via HackerOne.
Scope and Available Updates
Patch releases have been issued for AI Gateway versions 19.2.4, 19.3.2, and 19.4.1. The vulnerable range extends back to version 18.1.6, covering all unpatched releases up through the 19.1 series. In accordance with GitLab's active maintenance policy as of October 2, security backports were restricted to the 19.2, 19.3, and 19.4 release streams.
GitLab-managed deployments, including GitLab.com, GitLab Dedicated, and self-managed instances using cloud-hosted gateways, were patched directly by GitLab and require no customer action. However, administrators operating self-hosted Docker containers or Helm charts must manually pull and deploy the updated container tags, such as self-hosted-v19.4.1-ee. GitLab offered no temporary workarounds or mitigation steps for deployments that cannot immediately upgrade.
Threat Status and Context
An assessment added to the CVE record by the U.S. Cybersecurity and Infrastructure Security Agency on October 2 indicated no evidence of active exploitation or public proof-of-concept code. GitLab's advisory similarly contained no reports of malicious activity targeting the flaw prior to the patch announcement.
This issue marks the second 9.9 CVSS flaw discovered in the AI Gateway template engine, classified under CWE-1336. A previous vulnerability patched in February, tracked as CVE-2026-1868, similarly allowed code execution via malicious flow definitions on the gateway.
AI-generated editorial illustration; not a documentary photograph.
Source: GitLab Patches Critical 9.9 AI Gateway Flaw Allowing Command Execution on Self-Hosted Servers

Leave a Reply