GHSA-6qr9-g2xw-cw92: Github.com/dagu org/dagu Remote Code Execution Vulnerability

CRITICAL
CVSS 9.8
CWE-306
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-6qr9-g2xw-cw92
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Github.com/dagu org/dagu
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

github.com/dagu-org/dagu fixed: Latest secure release
Upgrade github.com/dagu-org/dagu to Latest secure release
Verify Direct and Transitive Dependencies

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

### Summary Dagu'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. ### Details `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. The `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. ### PoC ```bash curl -s -X POST http://TARGET:8080/api/v2/dag-runs \ -H "Content-Type: application/json" \ -d '{"name":"poc","spec":"steps:\n - name: rce\n command: id > /tmp/pwned\n"}' # Response: {"dagRunId":"<uuid>"} # /tmp/pwned contains: uid=1000(dagu) gid=1000(dagu) ``` Confirmed on `ghcr.io/dagu-org/dagu:latest` with no configuration changes. ### Impact Every 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.

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?
GHSA-6qr9-g2xw-cw92 is a security vulnerability in Github.com/dagu org/dagu involving Dagu affected by unauthenticated RCE via inline DAG spec in default configuration under CWE-306: Missing Authentication for Critical Function.
Which Github.com/dagu org/dagu versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/dagu-org/dagu.
What version fixes GHSA-6qr9-g2xw-cw92?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/dagu-org/dagu affected?
Yes, github.com/dagu-org/dagu is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-6qr9-g2xw-cw92?
GHSA-6qr9-g2xw-cw92 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-6qr9-g2xw-cw92?
GHSA-6qr9-g2xw-cw92 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check Go dependencies for GHSA-6qr9-g2xw-cw92?
Run the dependency tree command: 'inspect dependencies for github.com/dagu-org/dagu'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}