CVE-2026-27598: dagu · Path Traversal
Affects daguSource CVE Database V5
Not known to be exploited · CVSS 7.1 High.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| dagu-orgdagu | Affected
| Fixed in– |
GitHubdagu-org/dagupkg:github/dagu-org/daguOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade dagu to version 1.16.8 or later where the vulnerability is fixed.
- Restrict DAG write permissions strictly to trusted users and service accounts.
- Implement strong authentication and access controls to prevent unauthorized access to the CreateNewDAG API endpoint.
- Monitor and audit DAG creation and modification activities for suspicious patterns, especially unusual DAG names containing path traversal sequences.
- Employ filesystem permissions and containerization to limit the dagu process's filesystem access, reducing the impact of arbitrary file writes.
- Use network segmentation and firewall rules to restrict access to the dagu web interface and API.
- Conduct regular security assessments and code reviews for custom workflow scripts to detect malicious modifications.
- Consider deploying runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect anomalous command executions triggered by dagu.
Description
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.