{"vuln_id":"GHSA-6qr9-g2xw-cw92","aliases":["CVE-2026-126752"],"description":"Dagu affected by unauthenticated RCE via inline DAG spec in default configuration","published_at":"2026-02-19T22:04:39Z","modified_at":"2026-11-18T17:10:32.607698Z","first_seen_at":"2026-11-21T19:15:50.250968Z","severity":"critical","severity_source":"native","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-306"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-6qr9-g2xw-cw92"},"matched_alias":null,"items":[{"id":8014,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-126752: 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…","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.\n\nReferences:\nhttps://github.com/dagucloud/dagu/commit/c0e7cf7e1cfc3a52af8a9fb2da1ca911a9958649\nhttps://github.com/dagucloud/dagu/pull/1688\nhttps://github.com/dagucloud/dagu/security/advisories/GHSA-6qr9-g2xw-cw92\nhttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/dagu-rce.yaml\nhttps://www.vulncheck.com/advisories/dagu-1.23.0-2.0.0-unauthenticated-rce-via-api-v2-dag-runs\nhttps://www.vulncheck.com/advisories/dagu-1.23.0-before-2.0.0-unauthenticated-rce-via-api-v2-dag-runs\nhttps://github.com/dagucloud/dagu/security/advisories/GHSA-6qr9-g2xw-cw92","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126752","published_at":"2026-11-18T16:18:08.590000Z","updated_at":"2026-11-19T21:45:00.797000Z","fetched_at":"2026-11-21T19:15:31.483838Z","severity":"critical","cvss_score":9.8,"epss":0.00927,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-126752","vuln_ids":["CVE-2026-126752","GHSA-6QR9-G2XW-CW92"],"tags":["CWE-306"],"cluster_id":8519,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8014","html":"https://vulnwatch.ve1ve2.com/item/8014"}},{"id":10985,"source":{"id":"osv","name":"OSV.dev"},"title":"GO-2026-4527: Dagu affected by unauthenticated RCE via inline DAG spec in default configuration in github.com/dagu-org/dagu","summary":"Dagu affected by unauthenticated RCE via inline DAG spec in default configuration in github.com/dagu-org/dagu\n\nAffected: Go:github.com/dagu-org/dagu\n\nNo fixed version published yet\n\nReferences:\nhttps://github.com/dagu-org/dagu/security/advisories/GHSA-6qr9-g2xw-cw92","url":"https://osv.dev/vulnerability/GO-2026-4527","published_at":"2026-02-23T18:23:15Z","updated_at":"2026-11-18T17:10:32.607698Z","fetched_at":"2026-11-21T19:15:55.946349Z","severity":"critical","cvss_score":9.8,"epss":0.00927,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/dagu-org/dagu","vuln_id":"CVE-2026-126752","vuln_ids":["CVE-2026-126752","GHSA-6QR9-G2XW-CW92","GO-2026-4527"],"tags":["osv","go","no-fix-yet"],"cluster_id":8519,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10985","html":"https://vulnwatch.ve1ve2.com/item/10985"}},{"id":10984,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-6qr9-g2xw-cw92: Dagu affected by unauthenticated RCE via inline DAG spec in default configuration","summary":"Dagu affected by unauthenticated RCE via inline DAG spec in default configuration\n\n### 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\":\"\n\"}\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.\n\nAffected: Go:github.com/dagu-org/dagu\n\nNo fixed version published yet\n\nReferences:\nhttps://github.com/dagu-org/dagu/security/advisories/GHSA-6qr9-g2xw-cw92\nhttps://github.com/dagu-org/dagu","url":"https://osv.dev/vulnerability/GHSA-6qr9-g2xw-cw92","published_at":"2026-02-19T22:04:39Z","updated_at":"2026-11-18T17:10:32.607698Z","fetched_at":"2026-11-21T19:15:55.946348Z","severity":"critical","cvss_score":9.8,"epss":0.00927,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/dagu-org/dagu","vuln_id":"CVE-2026-126752","vuln_ids":["CVE-2026-126752","GHSA-6QR9-G2XW-CW92","GO-2026-4527"],"tags":["osv","go","no-fix-yet"],"cluster_id":8520,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10984","html":"https://vulnwatch.ve1ve2.com/item/10984"}}]}