HIGH 8.8

CVE-2026-34168: Coolify Command Injection via LocalPersistentVolume Name

Coolify, an open-source platform for managing servers and applications, contains a command injection vulnerability in how it handles storage volume names. An authenticated user can inject shell commands into a volume name field, and those commands execute with server privileges when the volume is deleted. This requires an attacker to already have valid credentials to the Coolify instance, but the impact is severe—full command execution on managed infrastructure. The vulnerability was patched in version 4.0.0-beta.471.

Source data · NVD / CISA · public domain

CVSS
3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-78
Affected products
0 configuration(s)
Published / Modified
2026-07-07 / 2026-07-07

NVD description (verbatim)

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.471, the LocalPersistentVolume.name field is interpolated directly into docker volume shell commands without shell argument escaping, allowing an authenticated user to set a storage name containing shell metacharacters and execute commands on managed servers when the resource is deleted. This issue is fixed in version 4.0.0-beta.471.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in the LocalPersistentVolume.name field, which is interpolated directly into Docker volume shell commands without proper argument escaping. When a storage resource is deleted, the unsanitized name parameter is passed to a shell command, enabling OS command injection via metacharacters (e.g., backticks, $(), semicolons, pipes). An authenticated attacker can craft a malicious storage name containing shell syntax that executes arbitrary commands on the managed servers at deletion time. The attack surface is the Coolify API or UI where volume names are specified.

Business impact

Successful exploitation allows an authenticated internal user or compromised Coolify admin account to execute arbitrary commands on all servers managed by that Coolify instance. This could result in data exfiltration, lateral movement, persistent backdoors, or destruction of containerized workloads and databases. Organizations using Coolify for multi-tenant or critical infrastructure management face risk of complete infrastructure compromise if an attacker gains even low-privilege authentication credentials.

Affected systems

Coolify versions prior to 4.0.0-beta.471 are affected. The vulnerability requires the attacker to have authentication credentials (e.g., valid user account). It impacts any installation where users can create or manage persistent volumes and where backend servers are accessible via Docker commands.

Exploitability

Exploitability is moderate to high. The attack requires prior authentication, which raises the barrier compared to unauthenticated exploits, but Coolify's open-source nature and self-hosted deployment model mean credential compromise or insider threat is plausible. The injection mechanism is straightforward—no complex race conditions or timing—so exploitation can be reliable once credentials are obtained. No user interaction is required beyond the attacker triggering volume deletion.

Remediation

Upgrade Coolify to version 4.0.0-beta.471 or later. Organizations unable to upgrade immediately should restrict Coolify user access to trusted personnel only, monitor deletion events on managed volumes, and implement network segmentation so Coolify servers cannot reach critical infrastructure if compromised. Alternatively, disable user-initiated volume deletion if the feature is not essential.

Patch guidance

Update Coolify to 4.0.0-beta.471 or later. Verify the patch in the official Coolify GitHub repository and release notes before deploying. Test the patched version in a non-production environment first to ensure compatibility with your deployment. After patching, review and audit any storage volumes created by users prior to the update for suspicious names.

Detection guidance

Monitor Coolify logs for volume deletion operations and inspect the volume names being deleted for unusual shell metacharacters (backticks, $(), $({}), semicolons, pipes, &&, ||). Implement alerting for volume deletions followed by unexpected process execution on backend servers. Review Docker daemon logs on managed servers for command execution patterns that correlate with volume operations. Use file integrity monitoring on critical application directories to detect unauthorized modifications.

Why prioritize this

This vulnerability merits prompt patching despite its authentication requirement. The CVSS score of 8.8 reflects high impact (confidentiality, integrity, and availability all compromised). For organizations using Coolify to manage production infrastructure, a single compromised credential or insider threat can cascade into full infrastructure takeover. The straightforward exploit mechanism and potential for lateral movement make it a priority for teams relying on Coolify for critical workloads.

Risk score, explained

The CVSS 3.1 score of 8.8 (HIGH) reflects: network-accessible attack vector, low attack complexity (no special conditions required), low privilege bar (authenticated user), no user interaction needed, and unconstrained scope with complete compromise of confidentiality, integrity, and availability. The main mitigating factor is the requirement for prior authentication, which prevents mass exploitation but does not reduce severity for organizations where credential compromise is realistic.

Frequently asked questions

Does this vulnerability affect Coolify deployments running version 4.0.0-beta.471 or later?

No. The vulnerability was fixed in 4.0.0-beta.471. Any deployment running that version or a later release is not affected. Verify your installed version in the Coolify UI under settings or via the application logs.

Can an unauthenticated attacker exploit this vulnerability?

No. The attacker must have valid authentication credentials to access Coolify and create or delete storage volumes. However, compromised credentials, weak passwords, or insider threats can provide the necessary access.

What happens if a volume with a malicious name is created but never deleted?

The injected commands will not execute unless the volume deletion operation is triggered. Creation alone does not execute the payload. The vulnerability is specific to the deletion workflow.

Are there workarounds for organizations that cannot patch immediately?

Yes. Restrict Coolify user access to trusted administrators only, disable volume deletion features if not essential, monitor deletion operations closely, and segment Coolify infrastructure from critical production systems using network controls.

This analysis is provided for informational and educational purposes. The information is based on publicly available vulnerability data and vendor advisories as of the publication date. Organizations should verify all patch versions, affected product lists, and remediation guidance against official vendor sources before taking action. SEC.co makes no warranty regarding the completeness or accuracy of this analysis and assumes no liability for decisions made in reliance on it. Always consult your own security team and vendor documentation when planning remediation. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).