SecurityContext

CVE-2026-31886: Dagu - Path Traversal

  • Cve: CVE-2026-31886
  • Name: Dagu - Path Traversal
  • 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.
  • Impact: Attackers can delete arbitrary files/directories, causing denial of service and disruption of concurrent runs or entire system.
  • Remediation: Update to version 2.2.4 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: denial_of_service, file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.6
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
  • Epss score: 0.00465
  • Epss percentile: 0.40762
  • Assignee: [email protected]
  • Published at: 2026-03-13T19:54:37Z
  • Age in days: 256
  • Modified at: 2026-06-17T10:34:41Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31886
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/dagu-org/dagu/security/advisories/GHSA-m4q3-457p-hh2xnvd2026-03-13

References

UrlSourceTags
https://github.com/dagu-org/dagu/commit/12c2e5395bd9331d49ca103593edfd0db39c4f38nvdPatch
https://github.com/dagu-org/dagu/security/advisories/GHSA-m4q3-457p-hh2xnvdExploit, Mitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
dagu:dagu< 2.2.4nonvd/v1/products/dagu/dagu

Projects

RepositoryLink kindsIndexedUrl
dagu-org/dagucommit, fix, package, security_advisoryyes/v1/repositories/dagu-org/dagu
dagucloud/dagufixyes/v1/repositories/dagucloud/dagu

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-03-13
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts