{"cve":"CVE-2026-27598","nvd":{"published":"2026-02-25T01:16:09.157","modified":"2026-06-17T10:27:22.060","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":7.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-22"],"references":["https://github.com/dagu-org/dagu/commit/e2ed589105d79273e4e6ac8eb31525f765bb3ce4","https://github.com/dagu-org/dagu/security/advisories/GHSA-6v48-fcq6-ff23"],"products":["dagu:dagu"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-27598","score":0.00649,"percentile":0.51126,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-6v48-fcq6-ff23","url":"https://osv.dev/vulnerability/GHSA-6v48-fcq6-ff23","summary":"Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory","modified":"2026-02-28T06:26:47.378016Z","packages":[{"ecosystem":"Go","name":"github.com/dagu-org/dagu","purl":"pkg:golang/github.com/dagu-org/dagu","ranges":["<=1.16.7"],"fixed":[]}]},{"id":"GO-2026-4542","url":"https://osv.dev/vulnerability/GO-2026-4542","summary":"Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory in github.com/dagu-org/dagu","modified":"2026-02-25T23:41:03.132425Z","packages":[{"ecosystem":"Go","name":"github.com/dagu-org/dagu","purl":"pkg:golang/github.com/dagu-org/dagu","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}