Skip to content

Dagu

Dagu has a Path Traversal via `dagRunId` in Inline DAG Execution

CVE-2026-31886Published 13 Mar 2026, 19:32 UTC

Real-world risk

2.3/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

Dagu is a workflow engine with a built-in Web user interface. Prior to 2.2.4, the dagRunId request field accepted by the inline DAG execution endpoints is passed directly into filepath.Join to construct a temporary directory path without any format validation. Go's filepath.Join resolves .. segments lexically, so a caller can supply a value such as ".." to redirect the computed directory outside the intended /tmp/<name>/<id> path. A deferred cleanup function that calls os.RemoveAll on that directory then runs unconditionally when the HTTP handler returns, deleting whatever directory the traversal resolved to. With dagRunId set to "..", the resolved directory is the system temporary directory (/tmp on Linux). On non-root deployments, os.RemoveAll("/tmp") removes all files in /tmp owned by the dagu process user, disrupting every concurrent dagu run that has live temp files. On root or Docker deployments, the call removes the entire contents of /tmp, causing a system-wide denial of service. This vulnerability is fixed in 2.2.4.

Am I affected?

ProductAffected versions (from the sources)Fixed in
DaguNiche< 2.2.42.2.4

What to do

Update to a fixed version: 2.2.4.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • CISA SSVC: proof of concept

EPSS 0.5% chance of exploitation in 30 days (percentile 42), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.600
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.4 × prerequisites 0.6 × threat 0.952.280
  4. Rounded to one decimal between 0.1 and 102.3

How the score works

Exploitation and evidence timeline

  1. 13 Mar 2026 Published
  2. 3 Dec 2026 CISA SSVC: proof of concept first seen
  3. 3 Dec 2026 Risk 2.3 (cvss fallback)

Weakness

CWE-22

References

Get alerts for Dagu

Free email or text alerts when a vulnerability in Dagu reaches risk 8 or higher. Nothing else.