LiveActive security incident?Get immediate response
CVE Record

CVE-2026-27598: Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory

Dagu is a workflow engine with a built-in Web user interface. In versions up to and including 1.16.7, the `CreateNewDAG` API endpoint (`POST /api/v1/dags`) does not validate the DAG name before passing it to the file store. An authenticated user with DAG write permissions can write arbitrary YAML files anywhere on the filesystem (limited by the process permissions). Since dagu executes DAG files as shell commands, writing a malicious DAG to the DAGs directory of another instance or overwriting config files can lead to remote code execution. Commit e2ed589105d79273e4e6ac8eb31525f765bb3ce4 fixes the issue.

HighCVSS 7.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Dagu versions 1.16.7 and earlier let a user who can create DAGs write YAML files outside the intended DAG directory. Because Dagu can execute DAG definitions as shell commands, this can become remote code execution if abused to place malicious DAGs or overwrite sensitive configuration.

Executive priority

Treat as high priority if Dagu is used in production or by semi-trusted teams. The issue can turn workflow-authoring access into broader system compromise, depending on filesystem permissions and deployment design.

Technical view

The CreateNewDAG API endpoint, POST /api/v1/dags, does not validate the DAG name before passing it to file storage. This is a path traversal issue, CWE-22. The advisory states an authenticated user with DAG write permissions can write arbitrary YAML files within the Dagu process permissions. Commit e2ed589105d79273e4e6ac8eb31525f765bb3ce4 fixes it.

Likely exposure

Organizations running dagu-org Dagu version 1.16.7 or earlier are potentially exposed, especially where the Web UI or API is reachable by multiple users or integrated automation accounts with DAG write access.

Exploitation context

Provided sources do not report active exploitation, and the CVE is not marked KEV. Abuse requires the ability to create DAGs according to the advisory, but impact can be serious because file writes may lead to command execution through Dagu workflows.

Researcher notes

Evidence is limited to the CVE record, GitHub advisory, and fix commit. The advisory describes arbitrary YAML file write outside the DAGs directory and possible RCE through Dagu execution behavior. No public exploitation evidence is provided in the source bundle.

Mitigation direction

  • Upgrade to a Dagu release containing commit e2ed589105d79273e4e6ac8eb31525f765bb3ce4.
  • If no packaged release is available, follow Dagu vendor guidance for applying the fix.
  • Restrict DAG write permissions to trusted users and service accounts.
  • Run Dagu with least-privilege filesystem permissions.
  • Limit network access to the Dagu Web UI and API.
  • Review Dagu configuration for unsafe shared DAG directories across instances.

Validation and detection

  • Inventory all Dagu deployments and record versions.
  • Flag Dagu versions 1.16.7 and earlier for remediation.
  • Confirm the fix commit is present in deployed builds.
  • Review who has DAG write permissions.
  • Check logs for unusual DAG creation activity or unexpected file path patterns.
  • Verify the Dagu process cannot write outside required directories.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-27598 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.1 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.1CVSS 4.0HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

7.1High
CVSS 4.0 vector shape for CVE-2026-27598Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
dagu-orgdagu<= 1.16.7Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.