Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dagu-org | dagu | up to 1.16.7 | — | No fix listed | CNA |
| — | github.com/dagu-org/dagu (Go) | up to 1.16.7 | — | No fix listed | GHSA-6v48-fcq6-ff23 |
- dagu Vendordagu-org Affected up to 1.16.7 Fixed in — No fix listed CNA
- github.com/dagu-org/dagu (Go) Vendor— Affected up to 1.16.7 Fixed in — No fix listed GHSA-6v48-fcq6-ff23
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27598
- 2026-10-03 Alias added: GHSA-6v48-fcq6-ff23
References
More dagu-org Dagu vulnerabilities
- TI-2026-24438 Dagu has a Path Traversal via `dagRunId` in Inline DAG Execution CVSS 3.1CRITICAL 9.1
- TI-2026-24434 Dagu SSE Authentication Bypass in Basic Auth Mode CVSS 3.1HIGH 7.5
- TI-2026-25750 Dagu has an incomplete fix for CVE-2026-27598: path traversal via %2F-encoded slashes in locateDAG CVSS 3.1HIGH 8.1
Sources
- CVE-2026-27598 · CVE Program
- CVE-2026-27598 · NVD
- FIRST EPSS
- GHSA-6v48-fcq6-ff23 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences