Dagu has a Path Traversal via `dagRunId` in Inline DAG Execution
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| dagu-org | dagu | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Dagu-org | Dagu |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-m4q3-457p-hh2x | Dagu: Path Traversal via `dagRunId` in Inline DAG Execution |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.465% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Dagu
Dagu dagu |
|
| CPEs | cpe:2.3:a:dagu:dagu:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Dagu
Dagu dagu |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Dagu-org
Dagu-org dagu |
|
| Vendors & Products |
Dagu-org
Dagu-org dagu |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Dagu has a Path Traversal via `dagRunId` in Inline DAG Execution | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV3_1
|