{"id":"CVE-2026-126752","aliases":["CVE-2026-126752","GHSA-6qr9-g2xw-cw92","GO-2026-4527"],"related":[],"kind":"vulnerability","state":"published","title":"Dagu 1.23.0 < 2.0.0 Unauthenticated RCE via /api/v2/dag-runs","summary":"Dagu 1.23.0 before 2.0.0 defaults auth.mode to none, allowing unauthenticated attackers to execute OS commands through the /api/v2/dag-runs endpoint. Attackers can send a POST request with an inline spec defining steps containing arbitrary shell commands to achieve remote code execution. Exploitation evidence was first observed by the Shadowserver Foundation on 2026-03-11.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Dagu 1.23.0 before 2.0.0 defaults auth.mode to none, allowing unauthenticated attackers to execute OS commands through the /api/v2/dag-runs endpoint. Attackers can send a POST request with an inline spec defining steps containing arbitrary shell commands to achieve remote code execution. Exploitation evidence was first observed by the Shadowserver Foundation on 2026-03-11.","source":"cvelist"},{"lang":"en","text":"### Summary\nDagu's default configuration ships with authentication disabled. The `POST /api/v2/dag-runs` endpoint accepts an inline YAML spec and executes its shell commands immediately with no credentials required — any dagu instance reachable over the network is fully compromised by default.\n\n### Details\n`internal/service/app/config/loader.go:226` sets `AuthModeNone` as the default. With no auth mode configured, `internal/frontend/api/v2/handlers/api.go:520` returns `nil` from `requireExecute()` — all permission checks pass without a valid session.\n\nThe `POST /api/v2/dag-runs` endpoint accepts a `spec` field containing a full YAML DAG definition. The spec is parsed and the commands execute immediately on the host with no validation beyond YAML parsing.\n\n### PoC\n```bash\ncurl -s -X POST http://TARGET:8080/api/v2/dag-runs \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"poc\",\"spec\":\"steps:\\n  - name: rce\\n    command: id > /tmp/pwned\\n\"}'\n# Response: {\"dagRunId\":\"<uuid>\"}\n# /tmp/pwned contains: uid=1000(dagu) gid=1000(dagu)\n```\nConfirmed on `ghcr.io/dagu-org/dagu:latest` with no configuration changes.\n\n### Impact\nEvery dagu deployment using default settings — every Docker deployment, every install following the documentation, every instance without explicit `DAGU_AUTH_MODE` configuration — is fully compromised without credentials. An attacker with network access gets OS command execution as the dagu process user.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Dagu affected by unauthenticated RCE via inline DAG spec in default configuration in github.com/dagu-org/dagu","format":"markdown","source":"go"}],"published":"2026-02-19T22:04:39.000Z","modified":"2026-11-19T21:45:00.797Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-306"],"affected":[{"ranges":[{"type":"custom","introduced":"1.23.0","fixed":"2.0.0","status":"affected"}],"vendor":"dagu-org","product":"Dagu","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.30.3"}],"ecosystem":"Go","package":"github.com/dagu-org/dagu","purl":"pkg:golang/github.com/dagu-org/dagu","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/dagu-org/dagu","purl":"pkg:golang/github.com/dagu-org/dagu","source":"go"}],"references":[{"url":"https://github.com/dagucloud/dagu/security/advisories/GHSA-6qr9-g2xw-cw92","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dagucloud/dagu/pull/1688","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dagucloud/dagu/commit/c0e7cf7e1cfc3a52af8a9fb2da1ca911a9958649","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/dagu-rce.yaml","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/dagu-1.23.0-before-2.0.0-unauthenticated-rce-via-api-v2-dag-runs","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/dagu-1.23.0-2.0.0-unauthenticated-rce-via-api-v2-dag-runs","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dagu-org/dagu/security/advisories/GHSA-6qr9-g2xw-cw92","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/dagu-org/dagu","tags":["package"],"sources":["ghsa"]}],"credits":["ByamB4","The Shadowserver Foundation"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-11-18T16:26:50.905Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126752","url":"https://www.cve.org/CVERecord?id=CVE-2026-126752","licence":"CVE Terms of Use","modified":"2026-11-18T16:27:23.554Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6qr9-g2xw-cw92","url":"https://github.com/advisories/GHSA-6qr9-g2xw-cw92","licence":"CC-BY-4.0","modified":"2026-11-18T17:10:32.607Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4527","url":"https://pkg.go.dev/vuln/GO-2026-4527","licence":"CC-BY-4.0","modified":"2026-11-18T17:10:32.607Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-126752","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126752","licence":"Public domain","modified":"2026-11-19T21:45:00.797Z"}],"updatedAt":"2026-11-25T22:59:51.853Z","epss":{"score":0.00927,"percentile":0.61524,"date":"2026-12-01T12:00:22.000Z"}}