GPU VulnDB

Database/Container, Kubernetes & orchestration

Coolify: unescaped single quotes in custom compose commands escape the container and run on the host

CVSS 8.8CVE-2026-34158Container, Kubernetes & orchestrationcurated

Impact

executeInDocker() wraps user-controlled commands in single quotes without escaping embedded quotes, so a user who can edit application settings can close the quote in docker_compose_custom_build_command or docker_compose_custom_start_command and have arbitrary commands run on the managed server host during the next deployment, outside the Docker confinement that was supposed to hold them. The deploying identity is root or docker-group on the host, so the result is host compromise reached from an application-settings form. This is a separate flaw from the CA certificate injection (CVE-2026-27957) and has its own fixed version.

Who can reach it

Network, authenticated: an account with permission to edit an application's settings in Coolify. Execution happens on the next deployment of that application, so it is not instantaneous.

What to do

Upgrade Coolify to 4.0.0-beta.469 or later and restart the Coolify services. No change is needed on the managed hosts, but any host that ran a deployment with attacker-edited custom compose commands should be treated as compromised and rebuilt. Interim mitigation is to restrict who can edit application settings.

References

Related entries

All Container, Kubernetes & orchestration entries

This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.