ADVISORIES

Vulnerability

CVE-2026-31886

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.

4 advisories report this vulnerability, across 2 ecosystems.

Critical severity All Go 2openSUSE 2

Advisories

  • GHSA-m4q3-457p-hh2x

    Dagu: Path Traversal via `dagRunId` in Inline DAG Execution

    Critical CVE-2026-31886 Go Updated 23 March 2026
  • GO-2026-4693

    Dagu: Path Traversal via `dagRunId` in Inline DAG Execution in github.com/dagu-org/dagu

    CVE-2026-31886 Go Updated 23 March 2026
  • SUSE-SU-2026:1042-1

    Security update for govulncheck-vulndb

    CVE-2021-25320CVE-2025-14443CVE-2025-15558CVE-2025-62879 openSUSE Updated 26 March 2026
  • openSUSE-SU-2026:21483-1

    Security update for govulncheck-vulndb

    Known exploited CVE-2016-11063CVE-2016-11066CVE-2016-11067CVE-2016-11068 openSUSE Updated 31 July 2026

References