critical CVSS 9

CVE-2026-45408·Docker vulnerability

Dokku is a docker-powered PaaS. Prior to 0.38.2, the app name validation regex (^[a-z0-9][^/:_A-Z]*$) permits shell metacharacters. When an authenticated user pushes to a git remote with a crafted app name, the name is embedded unquoted into a bash pre-receive hook script via an unquoted heredoc (<<EOF instead of <<'EOF') in fn-git-create-hook() at plugins/git/internal-functions:378. On git push, bash interprets the semicolon as a command separator, executing arbitrary commands as the dokku user. This vulnerability is fixed in 0.38.2.

Severity
critical
Software
Docker
Fixed in
0.38.2
Published
2026-06-26

Affected versions

Until: 0.38.2

Fixed in: 0.38.2

How to fix this CVE

Upgrade Docker to version 0.38.2 or later to patch a critical command injection vulnerability in the git pre-receive hook validation logic. The vulnerability allows authenticated users to execute arbitrary commands by injecting shell metacharacters into specially crafted app names during git push operations. Immediate patching is strongly recommended for any Docker installations that support multi-user git-based deployments.

sudo dnf update docker-ce docker-ce-cli --advisory=GHSA-9x85-7gxq-fcr3

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

git push remote with app name pattern matching [a-z0-9][^/:_A-Z]*;.*|.*`.*|.*\$\(.*\) followed by pre-receive hook execution error or command execution in dokku user context

How to check if you are affected

  1. Run 'docker --version' and 'dokku version' to identify the currently installed version; compare against 0.38.2
  2. Check git pre-receive hook file at /var/lib/dokku/plugins/git/internal-functions for the vulnerable unquoted heredoc pattern (<<EOF)
  3. Search system audit logs for failed git push attempts with unusual app names containing semicolons, backticks, or dollar signs: grep -r 'git.*receive\|app.*name.*invalid' /var/log/auth.log /var/log/syslog
  4. Verify the patch by confirming the file uses quoted heredoc syntax (<<'EOF') in the fn-git-create-hook() function after upgrade

FAQ

What is CVE-2026-45408?

CVE-2026-45408 is a critical command injection flaw in Docker where insufficient input validation on app names allows authenticated attackers to execute arbitrary shell commands as the dokku system user by embedding shell metacharacters into git push operations.

Is CVE-2026-45408 being actively exploited?

No, CVE-2026-45408 is not listed in the CISA KEV catalog and no public exploits are currently known, but the low barrier to exploitation for authenticated users warrants immediate patching.

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

All versions of Docker/Dokku prior to 0.38.2 are affected by this vulnerability.

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

Run 'dokku version' and verify the output is 0.38.2 or later. If earlier than 0.38.2, the system is vulnerable.

Does Defensia detect CVE-2026-45408?

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

Related Docker CVEs

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-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-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-26216CVSS 10Crawl4AI versions prior to 0.8.0 contain a remote code execution vulnerability in the Docker API deployment. The /crawl endpoint accepts a hooks parameter containing Python code that is executed using exec(). The __import__ builtin was included in the allowed builtins, allowing unauthenticated remote attackers to import arbitrary modules and execute system commands. Successful exploitation allows full server compromise, including arbitrary command execution, file read and write access, sensitive data exfiltration, and lateral movement within internal networks.
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-45408. Free for 1 server.

Get started free