critical CVSS 9.1

CVE-2026-31886·Docker vulnerability

Dagu is a workflow engine with a built-in Web user interface. Prior to 2.2.4, the dagRunId request field accepted by the inline DAG execution endpoints is passed directly into filepath.Join to construct a temporary directory path without any format validation. Go's filepath.Join resolves .. segments lexically, so a caller can supply a value such as ".." to redirect the computed directory outside the intended /tmp/<name>/<id> path. A deferred cleanup function that calls os.RemoveAll on that directory then runs unconditionally when the HTTP handler returns, deleting whatever directory the traversal resolved to. With dagRunId set to "..", the resolved directory is the system temporary directory (/tmp on Linux). On non-root deployments, os.RemoveAll("/tmp") removes all files in /tmp owned by the dagu process user, disrupting every concurrent dagu run that has live temp files. On root or Docker deployments, the call removes the entire contents of /tmp, causing a system-wide denial of service. This vulnerability is fixed in 2.2.4.

Severity
critical
Software
Docker
Fixed in
2.2.4
Published
2026-03-13

Affected versions

Until: 2.2.4

Fixed in: 2.2.4

How to fix this CVE

Upgrade Docker to version 2.2.4 or later to patch a critical path traversal vulnerability in Dagu's DAG execution endpoints. The vulnerability allows authenticated attackers to manipulate the dagRunId parameter to escape the intended temporary directory and trigger deletion of arbitrary system files, including the entire /tmp directory on Docker deployments. Immediate patching is essential to prevent denial of service and data loss.

sudo dnf update docker-ce

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST|GET /dagu/api/dag/.*/run with dagRunId parameter containing '..\/' or '..\\' or percent-encoded variants (%2e%2e or %252e%252e)

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block HTTP requests to Dagu DAG execution endpoints where the dagRunId parameter contains directory traversal sequences (../, ..\ or URL-encoded equivalents). Implement strict input validation requiring dagRunId to match the pattern ^[a-zA-Z0-9_-]+$ and reject any requests containing path separators or dot-dot notation.

How to check if you are affected

  1. Check installed Docker version: docker --version or docker version --format='{{.Server.Version}}'
  2. Verify Dagu is running in Docker by checking: docker ps | grep dagu or ps aux | grep dagu
  3. Search application logs for path traversal attempts: grep -r 'dagRunId.*\.\./' /var/log/ or check Dagu logs for requests with '..' in run ID parameters
  4. Confirm patched version is active: docker exec <container_id> dagu version or check the /tmp directory has not been unexpectedly cleared on the host system

FAQ

What is CVE-2026-31886?

CVE-2026-31886 is a critical path traversal vulnerability in Dagu (a workflow engine) where the dagRunId parameter in DAG execution requests is not validated before being used in filepath operations. This allows an authenticated attacker to escape the intended temporary directory and delete arbitrary files on the system.

Is CVE-2026-31886 being actively exploited?

No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, but the critical severity and ease of exploitation warrant immediate patching.

What versions of Docker are affected by CVE-2026-31886?

All versions of Docker prior to 2.2.4 that bundle or run Dagu as a workflow component are affected. The fix is available in Dagu 2.2.4 and later.

How do I check if my server is vulnerable to CVE-2026-31886?

Run 'docker --version' and verify the version is 2.2.4 or later; check 'docker ps' to identify any containers running Dagu and verify their image tags; examine Dagu application logs for any suspicious dagRunId requests containing '..' or path traversal patterns.

Does Defensia detect CVE-2026-31886?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Docker is installed on a monitored server, CVE-2026-31886 will appear in your dashboard with remediation steps.

Related Docker CVEs

CVE-2026-33587CVSS 10Lack of user input sanitisation in Open Notebook v1.8.3 allows the application user to execute Python code (and subsequently OS commands) on the docker container via Server-Side Template Injection (SSTI) for user-created transformations.
CVE-2026-57572CVSS 10Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, the Docker API server accepted request-supplied browser_config.extra_args, which flowed into Chromium's launch arguments. An attacker could inject Chromium switches that replace a child-process launch command together with --no-zygote, causing Chromium to fork or exec an attacker-controlled command as the container's runtime user. The Docker API is unauthenticated by default, so a single request yields arbitrary command execution. This issue is fixed in version 0.9.0.
CVE-2026-53576CVSS 10Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter for the REST API (@Filter("/api/v1/**")) treats any request whose path ends in /configs as the public instance-config endpoint and forwards it without a credential check. kestra addresses its resources by URL path segments that the caller chooses (/api/v1/{tenant}/flows/{namespace}, /api/v1/{tenant}/executions/{namespace}/{id}, /api/v1/{tenant}/namespaces/{namespace}/kv/{key}). An anonymous caller picks the literal configs as the final segment, and the request bypasses Basic-Auth entirely. Because the bypass reaches the flow-create and execution-trigger routes, an unauthenticated caller creates a flow containing a Shell or Process task and runs it. The task executes as root inside the kestra container. The official docker-compose.yml mounts /var/run/docker.sock, so root in the container reaches the host Docker daemon. This vulnerability is fixed in 1.0.45 and 1.3.21.
CVE-2026-42298CVSS 10Postiz is an AI social media scheduling tool. Prior to commit da44801, a "Pwn Request" vulnerability in the Build and Publish PR Docker Image workflow (.github/workflows/pr-docker-build.yml) allows any unauthenticated user to execute arbitrary code during the Docker build process and exfiltrate a highly privileged GITHUB_TOKEN (write-all permissions). This can be achieved simply by opening a Pull Request from a fork with a maliciously modified Dockerfile.dev. This issue has been patched via commit da44801.
CVE-2026-40281CVSS 10Gotenberg is a Docker-powered stateless API for PDF files. In versions 8.30.1 and earlier, the metadata write endpoint validates metadata keys for control characters but leaves metadata values unsanitized. A newline character in a metadata value splits the ExifTool stdin line into two separate arguments, allowing injection of arbitrary ExifTool pseudo-tags such as -FileName, -Directory, -SymLink, and -HardLink. This is a bypass of the incomplete key-sanitization fix introduced in v8.30.1. An unauthenticated attacker can rename or move any PDF being processed to an arbitrary path in the container filesystem, overwrite arbitrary files, or create symlinks and hard links at arbitrary paths.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31886. Free for 1 server.

Get started free