CVE-2026-27598
HIGH 7.1CVSS 4.0Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory
Dagu is a workflow engine with a built-in Web user interface. In versions up to and including 1.16.7, the CreateNewDAG API endpoint (POST /api/v1/dags) does not validate the DAG name before passing it to the file store. An authenticated user with DAG write permissions can write arbitrary YAML files anywhere on the filesystem (limited by the process permissions). Since dagu executes DAG files as shell commands, writing a malicious DAG to the DAGs directory of another instance or overwriting config files can lead to remote code execution. Commit e2ed589105d79273e4e6ac8eb31525f765bb3ce4 fixes the issue.
- Published
- 25 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-6v48-fcq6-ff23GO-2026-4542
- Sources
- NVDJSONOSV GHSA-6v48-fcq6-ff23JSONOSV GO-2026-4542JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dagu | dagucpe:2.3:a:dagu:dagu:*:*:*:*:*:*:*:* |
<= 1.16.7 | |
| OSV | Go | github.com/dagu-org/dagu | <= 1.16.7 | |
| OSV | Go | github.com/dagu-org/dagu | all versions |
References
- https://github.com/dagu-org/dagu/commit/e2ed589105d79273e4e6ac8eb31525f765bb3ce4 · Patch, WEB, FIX
- https://github.com/dagu-org/dagu/security/advisories/GHSA-6v48-fcq6-ff23 · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-27598 · ADVISORY
- https://github.com/dagu-org/dagu · PACKAGE
- https://pkg.go.dev/vuln/GO-2026-4542 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 25 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Feb 2026)