All vulnerabilities

Servers and applications

CVE-2026-34158

Command injection via single-quote breakout in Docker Compose custom commands

Severity
High 8.8
Published
2 Jul 2026
Last changed
2 Jul 2026
Added to UpHeron
22 Oct 2026
Exploit chance
0.4% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-j6j2-frv3-g6f7
Sources
Project advisories (GitHub)

Description

The executeInDocker() helper wraps user-controlled commands in single quotes (bash -c '...') without escaping embedded single quotes. Attackers who can edit application settings can inject a single quote into docker_compose_custom_build_command or docker_compose_custom_start_command to break out of the quoted context and execute arbitrary commands on the managed server host during deployments, escaping the intended Docker container confinement.

The executeInDocker() helper constructs a shell command by wrapping the $command argument in single quotes without any escaping:

If $command contains a single quote ('), it terminates the bash -c argument and the remainder is parsed as separate shell commands on the host.

  • Input: Attacker sends PATCH /api/v1/applications/{uuid} with:
  • Validation (ApplicationsController.php:2478-2479): Only checks 'string|nullable' — passes.
  • Storage: Value stored raw in the applications table. The Application model has no accessor/mutator on this field.
From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Version 4.0.0

About Coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

From its GitHub repository.
Docker Hub pulls
4,970,195Docker Hub, 15 Nov 2026
GitHub stars
66,095GitHub, 15 Nov 2026
Forks
5,989GitHub, 15 Nov 2026
Latest release
v4.7.5GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
Apache-2.0GitHub
First published on GitHub
25 Jan 2021GitHub

References