Skip to main content

Dagu CVE-2026-126752

| EUVDEUVD-2026-129004 CRITICAL
Missing Authentication for Critical Function (CWE-306)
2026-11-18 VulnCheck GHSA-x489-j8qr-qwr5
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach network-exposed Dagu API (port 8080)
  2. Exploit
    POST inline DAG spec to /api/v2/dag-runs
  3. Execution
    Shell command executes as dagu user
  4. Impact
    Full host compromise / RCE

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires only network reachability to the Dagu HTTP API (default :8080) with the default configuration, where auth.mode/DAGU_AUTH_MODE is 'none' - the condition is precisely the shipped default: every Docker deployment and documentation-following install without an explicit DAGU_AUTH_MODE override is exploitable with no credentials. No user interaction, authentication, or non-default feature is needed to reach the vulnerable POST /api/v2/dag-runs inline-spec code path. The primary limiting factor is deployment configuration: setting DAGU_AUTH_MODE to builtin or basic (the post-patch default) enables permission checks and blocks the unauthenticated path, and instances not exposed to an attacker's network are not reachable. Command execution runs as the dagu process user (observed uid=1000(dagu)), so impact is bounded by that user's privileges rather than guaranteed root.

Impact

This is a genuine top-priority vulnerability, not a high-CVSS-but-low-real-risk case, and multiple independent signals converge. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, 9.3) describes trivially reachable, network-based, unauthenticated exploitation with full confidentiality/integrity/availability impact on the vulnerable system, consistent with CWE-306 (missing authentication). The vuln.today decision label is act_now, a vendor patch exists (PR #1688 / commit c0e7cf7), and the Shadowserver Foundation reportedly first observed exploitation evidence on 2026-03-11 - real-world exploitation observed in telemetry, though the input does NOT indicate CISA KEV listing, so this is not 'confirmed actively exploited (CISA KEV)'. A public Nuclei template (projectdiscovery dagu-rce.yaml) and a vendor-confirmed working PoC in the GHSA advisory further lower the bar. No EPSS score was provided, so probabilistic exploitation likelihood cannot be quoted. One data conflict to verify: the CVE description and CPE state the flaw affects '1.23.0 before 2.0.0' (fixed in 2.0.0), while the GHSA source-code evidence field reports 'vulnerable <= 1.30.3' and 'fixed in: not yet patched' - the fixed-version boundary should be confirmed with the vendor before relying on it.

Exploit ScenarioDerived

An attacker scans for internet- or network-reachable Dagu instances (default port 8080) and, because the default auth.mode is none, sends a single unauthenticated POST to /api/v2/dag-runs containing an inline YAML spec whose step command is an arbitrary shell command. Dagu parses and immediately executes it on the host, returning a dagRunId and giving the attacker OS command execution as the dagu process user. A confirmed working PoC (curl one-liner writing to /tmp/pwned) is published in the GHSA advisory and a Nuclei detection template exists, and exploitation evidence was observed by Shadowserver on 2026-03-11.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Unauthenticated remote code execution affects Dagu 1.23.0 through 1.30.3 (the CVE description frames the range as 1.23.0 before 2.0.0) when authentication remains at the shipped default of none, allowing any instance reachable on its HTTP API to be compromised without credentials. The POST /api/v2/dag-runs endpoint accepts an inline YAML DAG spec and immediately executes its shell commands as the dagu process user, observed as uid=1000(dagu), so impact is bounded by that account rather than guaranteed root. A public proof-of-concept and Nuclei template exist, the PoC is confirmed against a default Docker deployment, exploitation evidence was first observed by Shadowserver on 2026-03-11, and the vuln.today decision is act_now; CISA KEV status is not provided in the available data.

RemediationAI

Apply the vendor fix referenced by PR https://github.com/dagucloud/dagu/pull/1688 and commit https://github.com/dagucloud/dagu/commit/c0e7cf7e1cfc3a52af8a9fb2da1ca911a9958649, or upgrade to a release that contains it; the CVE description uses 2.0.0 as the fixed boundary, while the GHSA package metadata lists <=1.30.3 as vulnerable and says not yet patched, so verify the exact release notes before relying on a version number. Upstream fix available (PR/commit); released patched version not independently confirmed. If the patch cannot be applied immediately, set DAGU_AUTH_MODE=builtin or basic explicitly so requireExecute enforces permission checks - this is also the post-patch default - and restrict network access to the Dagu HTTP API on port 8080. Trade-offs: enabling builtin auth requires creating the initial admin account via the new /auth/setup flow and managing the JWT token secret, and it will break clients that relied on unauthenticated access; network restriction may disrupt legitimate API integrations. Confirm the fix against the vendor advisory https://github.com/dagucloud/dagu/security/advisories/GHSA-6qr9-g2xw-cw92.

Affected VersionsENISA

dagu 1.23.0 <2.0.0

Affected Packages

go github.com/dagu-org/dagu no fix
euvd dagu fix: 2.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CVE-2026-126752 is a CWE-306 missing authentication for a critical function in Dagu, a workflow scheduler that executes shell commands defined in YAML DAG specs. The configuration loader sets AuthModeNone as the default at internal/service/app/config/loader.go:226, and with no auth mode configured the requireExecute check at internal/frontend/api/v2/handlers/api.go:520 returns nil, so 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 its commands execute immediately on the host with no validation beyond YAML parsing. The CVSS:4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N and the independent CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H agree on network-reachable, no-auth, no-interaction, high confidentiality/integrity/availability impact within the Dagu deployment. The condition is the shipped default: every Docker deployment and documentation-following install without an explicit DAGU_AUTH_MODE override is exploitable; setting DAGU_AUTH_MODE to builtin or basic enables permission checks and blocks the unauthenticated path.

Know when Dagu gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.8 CRITICAL

Remote unauthenticated POST to an API with no credentials (AV:N/AC:L/PR:N/UI:N) yields OS command execution as the dagu user, giving full C/I/A on that host without a scope change (S:U).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-306, Missing Authentication for Critical Functionality.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-126752 is a critical unauthenticated remote code execution vulnerability in Dagu versions 1.23.0 through 1.30.3 when authentication is disabled (the default). Any internet-accessible Dagu instance is at risk of full compromise, allowing attackers to execute arbitrary commands as the dagu user. Given confirmed exploitation and a public proof-of-concept, immediate action is required to protect organizational assets and data.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 39% exploitable
Prevalence
Low
niche self-hosted open-source workflow/job scheduler, modest adoption
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy