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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-31886

CVE-2026-31886: Dagu Workflow Engine DOS Vulnerability

CVE-2026-31886 is a denial of service flaw in Dagu workflow engine caused by path traversal in dagRunId validation. Attackers can delete system files, disrupting services. This article covers technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-31886 Overview

CVE-2026-31886 is a path traversal vulnerability affecting Dagu, a workflow engine with a built-in web user interface. Prior to version 2.2.4, the dagRunId request field accepted by inline DAG execution endpoints is passed directly into filepath.Join to construct a temporary directory path without any format validation. This allows attackers to manipulate the path and cause system-wide denial of service through arbitrary directory deletion.

Critical Impact

Authenticated attackers can leverage this path traversal to delete the entire contents of /tmp on Linux systems, causing system-wide denial of service affecting all concurrent Dagu runs and potentially other system processes.

Affected Products

  • Dagu versions prior to 2.2.4
  • Docker deployments running Dagu as root
  • Linux-based Dagu installations with default /tmp configuration

Discovery Timeline

  • 2026-03-13 - CVE-2026-31886 published to NVD
  • 2026-03-18 - Last updated in NVD database

Technical Details for CVE-2026-31886

Vulnerability Analysis

This vulnerability stems from insufficient input validation in Dagu's inline DAG execution endpoints. The dagRunId request field is used to construct temporary directory paths via Go's filepath.Join function. Since filepath.Join resolves .. segments lexically, an attacker can supply path traversal sequences to redirect the computed directory outside the intended /tmp/<name>/<id> path structure.

The critical issue is that a deferred cleanup function calls os.RemoveAll on the resolved directory path unconditionally when the HTTP handler returns. When an attacker sets dagRunId to .., the resolved directory becomes the system temporary directory (/tmp on Linux), resulting in deletion of all accessible files in that directory.

The impact varies based on deployment configuration:

  • Non-root deployments: os.RemoveAll("/tmp") removes all files owned by the dagu process user, disrupting concurrent dagu runs with active temp files
  • Root or Docker deployments: The call removes the entire contents of /tmp, causing system-wide denial of service

Root Cause

The root cause is a classic CWE-22 (Path Traversal) vulnerability where user-controlled input is passed directly to filesystem operations without proper sanitization. The filepath.Join function in Go does not prevent directory traversal sequences—it merely resolves them lexically. Combined with the unconditional os.RemoveAll cleanup operation, this creates a dangerous primitive for arbitrary directory deletion.

Attack Vector

The attack vector is network-based and requires low-privileged authenticated access to the Dagu web interface. An attacker crafts a malicious request to the inline DAG execution endpoint with a dagRunId value containing path traversal sequences such as ... When the handler completes and the deferred cleanup function executes, the system temporary directory is deleted instead of the intended run-specific directory.

The vulnerability mechanism involves the following flow:

  1. Attacker sends request to inline DAG execution endpoint with dagRunId set to ..
  2. Server constructs path using filepath.Join(baseDir, dagRunId) which resolves to parent directory
  3. DAG execution proceeds normally
  4. Deferred cleanup calls os.RemoveAll on the traversed path
  5. System /tmp directory contents are deleted

The security patch modifies the reference path handling to properly validate input. See the GitHub Commit for the complete fix.

go
	}

	// Seed built-in knowledge references to data dir (not git-synced).
-	fileagentskill.SeedReferences(
+	referencesDir := fileagentskill.SeedReferences(
		filepath.Join(cfg.Paths.DataDir, "agent", "references"),
	)

Source: GitHub Commit Details

Detection Methods for CVE-2026-31886

Indicators of Compromise

  • HTTP requests to inline DAG execution endpoints containing .. sequences in the dagRunId parameter
  • Unexpected deletion of files within /tmp directory
  • Dagu workflow failures due to missing temporary files
  • System logs showing os.RemoveAll operations on unexpected paths

Detection Strategies

  • Monitor web application logs for requests containing path traversal patterns (.., %2e%2e, etc.) in DAG-related endpoints
  • Implement file integrity monitoring on the /tmp directory to detect unexpected mass deletions
  • Review access logs for authenticated users making unusual requests to inline DAG execution endpoints
  • Deploy web application firewall rules to block path traversal sequences in request parameters

Monitoring Recommendations

  • Enable verbose logging for Dagu to capture all incoming request parameters
  • Configure alerting for sudden decreases in /tmp directory file counts
  • Monitor for Dagu service disruptions or workflow execution failures that may indicate exploitation
  • Track authentication events to identify potential malicious actors targeting the vulnerability

How to Mitigate CVE-2026-31886

Immediate Actions Required

  • Upgrade Dagu to version 2.2.4 or later immediately
  • Review access controls to limit who can access inline DAG execution endpoints
  • Avoid running Dagu as root or with elevated privileges
  • Implement network segmentation to restrict access to the Dagu web interface

Patch Information

The vulnerability is fixed in Dagu version 2.2.4. The patch introduces proper validation of the dagRunId parameter to prevent path traversal sequences from escaping the intended temporary directory structure.

For complete technical details, refer to the GitHub Security Advisory and the patch commit.

Workarounds

  • Run Dagu with a dedicated non-root user to limit the impact of potential exploitation to user-owned files
  • Implement a reverse proxy with input validation to filter path traversal patterns before they reach Dagu
  • Use container isolation with read-only /tmp mounts or separate tmpfs volumes per workflow
  • Apply network-level access controls to restrict access to the Dagu web interface to trusted networks only
bash
# Configuration example - Run Dagu as non-root user
# Create dedicated user for Dagu
useradd -r -s /bin/false dagu-service

# Set ownership of Dagu directories
chown -R dagu-service:dagu-service /opt/dagu

# Run Dagu as the dedicated user
su -s /bin/bash -c '/opt/dagu/bin/dagu server' dagu-service

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDagu

  • SeverityHIGH

  • CVSS Score7.6

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33344: Dagu Workflow Engine Path Traversal Flaw

  • CVE-2026-31882: Dagu Workflow Engine Auth Bypass Flaw

  • CVE-2026-27598: Dagu Workflow Engine RCE Vulnerability
Default Legacy - Prefooter | 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