Skip to content
Security Briefings

GitLab Issues Critical Patch for Self-Hosted AI Gateway Code Execution Flaw CVE-2026-1868

In an official critical patch advisory on February 6, 2026, GitLab released AI Gateway versions 18.6.2, 18.7.1, and 18.8.1 to fix CVE-2026-1868, a critical insecure template expansion flaw in Duo Workflow Service allowing authenticated users to achieve code execution on self-hosted gateways.

Verification & Actions

  • Check all self-managed GitLab Duo Self-Hosted AI Gateway deployments running versions prior to 18.6.2, 18.7.1, or 18.8.1
  • Audit Duo Agent Platform flow definitions, unexpected subprocess execution inside gateway containers, and model API key usage
  • Upgrade self-hosted AI Gateways to patched releases immediately and isolate gateway containers with least-privilege runtime policies
Primary advisory · docs.gitlab.comAwareness & Compliance Reviews

Weekly Threat & Ransomware Digest