# CVE-2026-27598: Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: None; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.07% (percentile 82, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-6v48-fcq6-ff23, GO-2026-4542
- **Published:** 2026-02-24T21:43:15.000Z
- **Modified:** 2026-06-17T10:27:22.060Z

## Who should check

- Projects that depend on Go package github.com/dagu-org/dagu (\<= 1.16.7)
- Anyone running dagu-org dagu \<= 1.16.7

## 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.

## Affected and fixed versions

- Go `github.com/dagu-org/dagu`: affected \<= 1.16.7; fixed no fix listed yet (osv)
- dagu-org dagu: \<= 1.16.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27598. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27598.md
Affected: github.com/dagu-org/dagu <= 1.16.7
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for github.com/dagu-org/dagu (Go), dagu-org dagu: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27598 being exploited?

There is no confirmed exploitation: CVE-2026-27598 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.07% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27598?

High: CVSS 7.1 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-27598?

github.com/dagu-org/dagu \<= 1.16.7.

### Is there a fix for CVE-2026-27598?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-27598?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/dagu-org/dagu/security/advisories/GHSA-6v48-fcq6-ff23>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27598>
- patch: <https://github.com/dagu-org/dagu/commit/e2ed589105d79273e4e6ac8eb31525f765bb3ce4>
- other: <https://github.com/dagu-org/dagu>
- other: <https://pkg.go.dev/vuln/GO-2026-4542>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27598>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6v48-fcq6-ff23> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4542> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27598> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27598>
