All vulnerabilities

Servers and applications

CVE-2026-42201

OS Command Injection via Database Credential Fields in Docker Compose Service Commands

Severity
Low 3.3
Published
2 Jul 2026
Last changed
2 Jul 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.474
Exploit chance
0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
OS command injection (CWE-78)
Attack
Over the network · Only under certain conditions · Needs an administrator account · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
Also known as
GHSA-f35h-g2c2-q36v
Sources
Project advisories (GitHub)

Description

Database credential fields (redis_password, keydb_password, dragonfly_password, clickhouse_admin_user, clickhouse_admin_password, postgres_user, mysql_user) are validated only as 'string' at the API layer, with zero shell-safety checks. These values are then interpolated directly into Docker Compose YAML command: strings without any escaping.

When Docker Compose receives a command: value as a YAML string (as opposed to an array), it executes it via /bin/sh -c "...". Shell metacharacters in the credential fields — semicolons, backticks, $() — become active shell operators inside the database container, enabling arbitrary command execution.

Six database types are affected across six separate Start* Action classes, with the ClickHouse healthcheck being particularly dangerous since Docker triggers it automatically every 5 seconds — creating persistent, recurring code execution inside the container.

From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Every version before 4.0.0-beta.474

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