The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-1868

CVE-2026-1868: GitLab AI Gateway RCE Vulnerability

CVE-2026-1868 is a remote code execution flaw in GitLab AI Gateway's Duo Workflow Service that allows attackers to execute code or cause denial of service. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-1868 Overview

A critical template injection vulnerability has been identified in the Duo Workflow Service component of GitLab AI Gateway. This vulnerability affects all versions of the AI Gateway from 18.1.6, 18.2.6, 18.3.1 through 18.6.1, 18.7.0, and 18.8.0. The flaw exists in the handling of user-supplied data through crafted Duo Agent Platform Flow definitions, where insecure template expansion allows attackers to inject malicious payloads.

This vulnerability falls under CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine), highlighting the dangerous consequences of inadequate input sanitization in template processing systems.

Critical Impact

Successful exploitation could result in Denial of Service (DoS) or achieve remote code execution on the GitLab AI Gateway, potentially compromising the entire AI infrastructure and any connected systems.

Affected Products

  • GitLab AI Gateway versions 18.1.6 through 18.6.1
  • GitLab AI Gateway version 18.7.0
  • GitLab AI Gateway version 18.8.0

Discovery Timeline

  • 2026-02-06 - GitLab releases security patch in versions 18.6.2, 18.7.1, and 18.8.1
  • 2026-02-09 - CVE CVE-2026-1868 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-1868

Vulnerability Analysis

The vulnerability resides in the Duo Workflow Service component's template expansion functionality. When processing Duo Agent Platform Flow definitions, the service fails to properly sanitize user-supplied input before passing it to the template engine. This insecure template expansion creates an injection point where attackers with low privileges can embed malicious template directives within flow definitions.

The scope-changing nature of this vulnerability means that successful exploitation can impact resources beyond the vulnerable component's security boundary. An attacker exploiting this flaw could potentially break out of the AI Gateway's intended execution context, affecting confidentiality, integrity, and availability of the host system.

Root Cause

The root cause of this vulnerability is improper neutralization of special elements used in the template engine (CWE-1336). The Duo Workflow Service accepts user-controlled input in Duo Agent Platform Flow definitions without adequate validation or escaping of template syntax characters. This allows template expressions embedded in user input to be interpreted and executed by the underlying template engine rather than being treated as literal data.

Attack Vector

The attack can be executed remotely over the network by an authenticated user with low-level privileges. No user interaction is required for exploitation. An attacker would craft a malicious Duo Agent Platform Flow definition containing template injection payloads. When the AI Gateway processes this flow definition, the embedded template directives are expanded and executed, potentially leading to:

  1. Denial of Service - Resource exhaustion through recursive template expansion or intentional crashes
  2. Remote Code Execution - Execution of arbitrary commands on the Gateway server through template engine-specific exploitation techniques

The vulnerability mechanism involves crafted template expressions within flow definitions that escape the intended data context. When the template engine processes these definitions, it interprets the malicious expressions as legitimate template commands rather than user data. Technical details regarding the specific exploitation methodology can be found in the GitLab AI Assist Work Item.

Detection Methods for CVE-2026-1868

Indicators of Compromise

  • Unusual template syntax patterns in Duo Agent Platform Flow definition logs
  • Unexpected process spawning or command execution originating from the AI Gateway service
  • Memory or CPU spikes associated with the Duo Workflow Service component
  • Error logs indicating template parsing failures or recursive expansion attempts

Detection Strategies

  • Monitor AI Gateway logs for flow definitions containing template metacharacters such as {{, }}, {%, %}, or similar template delimiters
  • Implement application-layer monitoring to detect anomalous requests to the Duo Workflow Service endpoints
  • Deploy runtime application self-protection (RASP) to identify template injection attempts in real-time
  • Utilize SentinelOne Singularity for endpoint detection to identify post-exploitation behaviors such as unauthorized code execution

Monitoring Recommendations

  • Enable verbose logging for the Duo Workflow Service component to capture all flow definition processing events
  • Establish baseline metrics for AI Gateway resource utilization to detect DoS-related anomalies
  • Configure alerting for any new process creation by the AI Gateway service that deviates from expected behavior
  • Implement network monitoring to detect unusual outbound connections from the AI Gateway infrastructure

How to Mitigate CVE-2026-1868

Immediate Actions Required

  • Upgrade GitLab AI Gateway to patched versions 18.6.2, 18.7.1, or 18.8.1 immediately
  • Audit existing Duo Agent Platform Flow definitions for any suspicious or unauthorized modifications
  • Review access controls to restrict who can create or modify flow definitions
  • Implement network segmentation to limit the blast radius if the AI Gateway is compromised

Patch Information

GitLab has released patched versions that address this vulnerability:

Current VersionUpgrade To
18.1.6 - 18.6.118.6.2
18.7.018.7.1
18.8.018.8.1

For detailed patch information and upgrade instructions, refer to the GitLab Patch Release Note.

Workarounds

  • Implement strict input validation on all Duo Agent Platform Flow definitions at the application layer before processing
  • Deploy a Web Application Firewall (WAF) with rules to block common template injection patterns
  • Restrict access to the Duo Workflow Service to only trusted internal networks until patching is complete
  • Consider temporarily disabling the Duo Workflow Service if not critical to operations
bash
# Example: Restrict network access to AI Gateway (adjust for your environment)
# Block external access to AI Gateway service port
iptables -A INPUT -p tcp --dport 443 -s ! 10.0.0.0/8 -j DROP

# Enable enhanced logging for Duo Workflow Service
export GITLAB_AI_GATEWAY_LOG_LEVEL=DEBUG
export GITLAB_AI_GATEWAY_AUDIT_MODE=enabled

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGitlab

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1336
  • Technical References
  • GitLab Patch Release Note

  • GitLab AI Assist Work Item
  • Related CVEs
  • CVE-2025-13761: GitLab RCE Vulnerability

  • CVE-2021-22205: GitLab CE/EE RCE Vulnerability

  • CVE-2022-2884: GitLab CE/EE RCE Vulnerability

  • CVE-2023-1708: GitLab CE/EE RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English