ZeroHour

CVE-2026-84694

moderate

Authenticated Command Injection in Coolify via Environment Variable Keys

CVSS 4.0
8.7 high
EPSS
<1%p38
Published
()
Modified
AI analysis

Coolify before 4.2.0 fails to properly escape environment variable key names before interpolating them into Docker commands executed over SSH on managed servers, an OS command injection flaw (CWE-78). An authenticated user who can create or edit environment variables can embed shell metacharacters in a variable key name, causing attacker-controlled commands to run in a shell on the target server. Because execution occurs on the server host rather than inside a container, the attacker escapes container isolation and gains arbitrary command execution with high confidentiality, integrity, and availability impact on that host. Any deployment running a Coolify version prior to 4.2.0 is affected, particularly installations managing remote servers over SSH. No exploitation has been observed: there is no known public PoC, the flaw is not in CISA KEV, and EPSS estimates a 0.5% probability of exploitation within 30 days.

What to do: Upgrade Coolify to version 4.2.0 or later, which properly escapes environment variable key names. As interim mitigation, restrict creation and editing of environment variables to trusted users and audit existing variable key names on managed servers for shell metacharacters such as ;, &&, |, $, backticks, or spaces.

Affected
Coolify (coollabsio) Coolifyall versions before 4.2.0
Estimated exposure
moderateon the order of tens of thousands of self-hosted instances, with only the subset that manages remote servers over SSH and grants environment-variable editing… — Coolify is a widely adopted open-source self-hosted PaaS whose installed base is generally estimated in the tens of thousands of instances, but no exact install counts or internet-exposed scan data are provided, so this is an…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-78
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.