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

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.77%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-24T21:43:15.000Z
- Modified: 2026-06-17T10:27:22.060Z
- Also known as: GHSA-6v48-fcq6-ff23, GO-2026-4542
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- dagu-org dagu: <= 1.16.7
- github.com/dagu-org/dagu (Go): up to 1.16.7; all versions
- dagu dagu: up to 1.16.7

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/dagu-org/dagu/security/advisories/GHSA-6v48-fcq6-ff23> (exploit, advisory, vendor-advisory, web)
- <https://github.com/dagu-org/dagu/commit/e2ed589105d79273e4e6ac8eb31525f765bb3ce4> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2026-27598](https://www.cve.org/CVERecord?id=CVE-2026-27598), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-6v48-fcq6-ff23](https://github.com/advisories/GHSA-6v48-fcq6-ff23), CC-BY-4.0, modified 2026-02-28
- Go Vulnerability Database: [GO-2026-4542](https://pkg.go.dev/vuln/GO-2026-4542), CC-BY-4.0, modified 2026-02-25
- NVD: [CVE-2026-27598](https://nvd.nist.gov/vuln/detail/CVE-2026-27598), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27598 · Whole record: https://cve.day/CVE-2026-27598.json · Rebuilt by cve.day 2026-11-25T22:59:14.792Z
