GHSA-6qr9-g2xw-cw92: Github.com/dagu org/dagu Remote Code Execution Vulnerability
CRITICALGHSA-6qr9-g2xw-cw92 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Github.com/dagu org/dagu libraries in the Go ecosystem. The issue involves dagu affected by unauthenticated rce via inline dag spec in default configuration. Remediation is available in the latest vendor maintenance releases.
GHSA-6qr9-g2xw-cw92 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix GHSA-6qr9-g2xw-cw92
To remediate this vulnerability, upgrade all affected Github.com/dagu org/dagu dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/dagu-org/dagu to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/dagu-org/dagu
How to Check if You Are Affected
To determine whether your application is affected by GHSA-6qr9-g2xw-cw92, inspect your project dependencies for Github.com/dagu org/dagu:
inspect dependencies for github.com/dagu-org/dagu
Analyze the terminal output to locate any version of Github.com/dagu org/dagu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Github.com/dagu org/dagu, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-6qr9-g2xw-cw92 Affected Github.com/dagu org/dagu Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/dagu-org/dagu
|
Go |
≤ 1.30.3
|
|
References
Frequently Asked Questions
What is GHSA-6qr9-g2xw-cw92?
Which Github.com/dagu org/dagu versions are affected?
What version fixes GHSA-6qr9-g2xw-cw92?
Is github.com/dagu-org/dagu affected?
What is the CVSS score of GHSA-6qr9-g2xw-cw92?
What CWE is associated with GHSA-6qr9-g2xw-cw92?
How can I check Go dependencies for GHSA-6qr9-g2xw-cw92?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6qr9-g2xw-cw92",
"modified" : "2026-02-20T21:44:24Z",
"published" : "2026-02-19T22:04:39Z",
"aliases" : [ ],
"summary" : "Dagu affected by unauthenticated RCE via inline DAG spec in default configuration",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/dagu-org/dagu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.30.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dagu-org/dagu/security/advisories/GHSA-6qr9-g2xw-cw92"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dagu-org/dagu"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-19T22:04:39Z",
"nvd_published_at" : null
}
}