Goal Reached Thanks to every supporter โ€” we hit 100%!

Goal: 1000 CNY ยท Raised: 1359 CNY

100%

CVE-2026-31886 โ€” AI Deep Analysis Summary

CVSS 9.1 ยท Critical

Q1What is this vulnerability? (Essence + Consequences)

๐Ÿšจ **Essence**: A Path Traversal vulnerability in **dagu** (Dagu Workflow Engine).โ€ฆ

Q2Root Cause? (CWE/Flaw)

๐Ÿ›ก๏ธ **CWE-22**: Improper Limitation of a Pathname to a Restricted Directory. <br>๐Ÿ” **Flaw**: The `dagRunId` request field is passed directly to `filepath.Join` **without format validation**.โ€ฆ

Q3Who is affected? (Versions/Components)

๐Ÿ“ฆ **Vendor**: dagu-org. <br>๐Ÿ“‰ **Affected**: **dagu** versions **prior to 2.2.4**. <br>โš ๏ธ If you are running v2.2.3 or earlier, you are vulnerable.

Q4What can hackers do? (Privileges/Data)

๐Ÿ•ต๏ธ **Capabilities**: <br>1. **Read**: Access arbitrary files on the system. <br>2. **Write/Delete**: Delete arbitrary files. <br>3. **Impact**: Cause **Denial of Service** by deleting critical workflow or system files.

Q5Is exploitation threshold high? (Auth/Config)

๐Ÿ” **Threshold**: **Low**. <br>๐Ÿ“ **Auth Required**: **Yes** (PR:L - Privileges Required: Low). <br>๐ŸŒ **Vector**: Network (AV:N). <br>๐Ÿ‘ค **UI**: None (UI:N). <br>โšก **Complexity**: Low (AC:L).โ€ฆ

Q6Is there a public Exp? (PoC/Wild Exploitation)

๐Ÿšซ **Public Exploit**: **No**. <br>๐Ÿ“„ **PoCs**: None listed in the data. <br>๐Ÿ”’ **Status**: No wild exploitation reported yet, but the flaw is straightforward.

Q7How to self-check? (Features/Scanning)

๐Ÿ” **Self-Check**: <br>1. Check your **dagu version**. Is it < 2.2.4? <br>2. Inspect code for `filepath.Join` usage with `dagRunId`. <br>3. Look for missing input validation/sanitization on workflow run IDs.

Q8Is it fixed officially? (Patch/Mitigation)

โœ… **Fixed**: **Yes**. <br>๐Ÿ”ง **Patch**: Upgrade to **dagu v2.2.4** or later. <br>๐Ÿ”— **Commit**: See GitHub commit `12c2e5395bd9331d49ca103593edfd0db39c4f38`.

Q9What if no patch? (Workaround)

๐Ÿ›‘ **Workaround (If no patch)**: <br>1. **Input Sanitization**: Manually validate `dagRunId` to ensure it contains only safe characters (alphanumeric, no `../`). <br>2.โ€ฆ

Q10Is it urgent? (Priority Suggestion)

๐Ÿ”ฅ **Urgency**: **HIGH**. <br>๐Ÿ“Š **CVSS**: **7.5** (High). <br>โšก **Priority**: Patch immediately. The ability to **delete files** and cause **DoS** makes this critical for operational stability. Don't wait!