high CVSS 8.8

CVE-2025-59156·Docker vulnerability

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0.0-beta.420.7, a Remote Code Execution (RCE)*vulnerability exists in Coolify's application deployment workflow. This flaw allows a low-privileged member to inject arbitrary Docker Compose directives during project creation or updates. By defining a malicious service that mounts the host filesystem, an attacker can achieve root-level command execution on the host OS, completely bypassing container isolation. Version 4.0.0-beta.420.7 contains a patch for the issue.

Severity
high
Software
Docker
Fixed in
4.0.0
Published
2026-01-05

Affected versions

Until: 4.0.0

Fixed in: 4.0.0

How to fix this CVE

Update Docker to version 4.0.0 or later to patch the Docker Compose injection vulnerability that allows low-privileged users to execute arbitrary commands with root privileges. This vulnerability affects the application deployment workflow where malicious service definitions can mount host filesystems and bypass container isolation. Upgrade immediately and review any deployment configurations created by non-admin users prior to the patch.

sudo dnf update docker-ce

Defensia detects this vulnerability

How to check if you are affected

  1. Step 1: Check your Docker version with 'docker --version' and compare against version 4.0.0 or later
  2. Step 2: Review docker-compose.yml and .env files in /etc/docker/ and user home directories for suspicious service definitions that mount host paths like '/' or '/etc'
  3. Step 3: Examine Docker daemon logs with 'sudo journalctl -u docker -n 500' for unusual container creation events or mount operations from non-root users
  4. Step 4: Verify the patch is applied by checking 'docker version' output shows API version consistent with Docker 4.0.0+, and audit recent deployment history for unauthorized changes

FAQ

What is CVE-2025-59156?

CVE-2025-59156 is a remote code execution flaw in Docker's application deployment workflow that allows low-privileged users to inject malicious Docker Compose configurations. Attackers can define services that mount the host filesystem and achieve root-level command execution, completely bypassing container isolation boundaries.

Is CVE-2025-59156 being actively exploited?

No, according to CISA's Known Exploited Vulnerabilities (KEV) list, CVE-2025-59156 is not currently being actively exploited in the wild, and no public exploits are available.

What versions of Docker are affected by CVE-2025-59156?

Docker versions prior to 4.0.0 are affected by this vulnerability. Version 4.0.0 and later contain the security patch.

How do I check if my server is vulnerable to CVE-2025-59156?

Run 'docker --version' and verify the version number is 4.0.0 or higher. If your version is below 4.0.0, your deployment is vulnerable and requires immediate patching.

Does Defensia detect CVE-2025-59156?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Docker is installed on a monitored server, CVE-2025-59156 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-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.
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-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.

References

Track CVEs across your fleet automatically

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

Get started free