CVE-2026-42201 PUBLISHED

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

Assigner: GitHub_M
Reserved: 25.04.2026 Published: 07.07.2026 Updated: 07.07.2026

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.474, 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. This issue is fixed in version 4.0.0-beta.474.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
CVSS Score: 3.3

Product Status

Vendor coollabsio
Product coolify
Versions
  • Version < 4.0.0-beta.474 is affected

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE