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?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| DaguNiche | < 2.2.4 | 2.2.4 |
What to do
Update to a fixed version: 2.2.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.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
- Prerequisites multiplied together0.600
- Threat T3: Public proof of concept0.950
- 10 × impact 0.4 × prerequisites 0.6 × threat 0.952.280
- Rounded to one decimal between 0.1 and 102.3
Exploitation and evidence timeline
- 13 Mar 2026 Published
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 2.3 (cvss fallback)
Weakness
CWE-22