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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| coollabsio | coolify | 0 to <4.2.0; 4.2.0 |
References
- https://github.com/coollabsio/coolify (product)
- https://github.com/coollabsio/coolify/commit/b50839d4515b115b7ded5db609471440249995da (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)
- https://github.com/coollabsio/coolify/releases/tag/v4.2.0 (release-notes)
- https://www.vulncheck.com/advisories/coolify-before-4.2.0-remote-code-execution-via-environment-variable-key (third-party-advisory)
Generated from the official CVE List on 02 Sep 2026 07:07 UTC.