Description
Coolify before 4.2.0 fails to properly escape environment variable key names in Docker commands executed over SSH on managed servers. Authenticated attackers can inject shell metacharacters into environment variable keys to execute arbitrary commands on the server host outside containers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| coollabsio | coolify | < 4.2.0 | 4.2.0 |
Advisories 1
- WID-SEC-2026-3150 Coolify: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Sep 1, 2026
References
- https://github.com/coollabsio/coolify product
- Patch Commit patch
- https://github.com/coollabsio/coolify/blob/v4.1.2/app/Support/ValidationPatterns.php technical-description
- https://github.com/coollabsio/coolify/blob/v4.1.2/app/Policies/ApplicationPolicy.php technical-description
- Coolify v4.2.0 Release Notes release-notes
- VulnCheck Advisory: Coolify before 4.2.0 Remote Code Execution via Environment Variable Key third-party-advisory