CVE-2026-31886: Vulnerability in Dagu
Critical. 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...
Go, CWE-22
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-m4q3-457p-hh2x
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H
- Weakness
- CWE-22
- Published
- 13 Mar 2026
- Last change
- 17 Jun 2026
- Ecosystem
- Go
Affected products
Affected versions and the first fixed release
- Dagu Before 2.2.4. Fixed in 2.2.4
Affected packages
Vulnerable version ranges and fixed releases
- github.com/dagu-org/dagu Go, Affected through 2.2.4. No fixed version recorded
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
Related
- Dagu vulnerabilities Recent advisories, watch this product