{"cve":"CVE-2026-31886","nvd":{"published":"2026-03-13T19:54:37.690","modified":"2026-06-17T10:34:41.853","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","score":7.6},"cwes":["CWE-22"],"references":["https://github.com/dagu-org/dagu/commit/12c2e5395bd9331d49ca103593edfd0db39c4f38","https://github.com/dagu-org/dagu/security/advisories/GHSA-m4q3-457p-hh2x"],"products":["dagu:dagu"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-31886","score":0.00438,"percentile":0.3811,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-m4q3-457p-hh2x","url":"https://osv.dev/vulnerability/GHSA-m4q3-457p-hh2x","summary":"Dagu: Path Traversal via `dagRunId` in Inline DAG Execution","modified":"2026-03-23T04:56:24.375198809Z","packages":[{"ecosystem":"Go","name":"github.com/dagu-org/dagu","purl":"pkg:golang/github.com/dagu-org/dagu","ranges":["<=2.2.4"],"fixed":[]}]},{"id":"GO-2026-4693","url":"https://osv.dev/vulnerability/GO-2026-4693","summary":"Dagu: Path Traversal via `dagRunId` in Inline DAG Execution in github.com/dagu-org/dagu","modified":"2026-03-23T04:52:55.921027Z","packages":[{"ecosystem":"Go","name":"github.com/dagu-org/dagu","purl":"pkg:golang/github.com/dagu-org/dagu","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}