All vulnerabilities

Servers and applications

CVE-2026-42148

Command Injection via Unescaped Version String in Docker Build

Severity
Low 3.8
Published
2 Jul 2026
Last changed
2 Jul 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.474
Exploit chance
0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
OS command injection (CWE-78)
Attack
Needs local access · Only under certain conditions · Needs an administrator account · Needs someone to click or open something
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
Also known as
GHSA-x9qh-w4c4-54f9
Sources
Project advisories (GitHub)

Description

The buildHelperImage() method in app/Livewire/Settings/Index.php constructs a Docker build command using user-controlled input ($this->dev_helper_version) without shell escaping. An attacker who can set the dev_helper_version field can inject arbitrary shell commands that execute on the server when the helper image build is triggered.

In app/Livewire/Settings/Index.php:172-209:

The $version variable comes from $this->dev_helper_version which is a Livewire property set by user input. It is validated only as nullable|string|max:50 (line 38-39) but NOT escaped for shell metacharacters. The $buildCommand string is then passed to remote_process() which executes it on the server via SSH.

While there is an isDev() check, this function returns true in development environments, and the dev_helper_version field is stored in the database and can be set through the settings interface.

An attacker can:

From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Every version before 4.0.0-beta.474

About Coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

From its GitHub repository.
Docker Hub pulls
4,970,195Docker Hub, 15 Nov 2026
GitHub stars
66,095GitHub, 15 Nov 2026
Forks
5,989GitHub, 15 Nov 2026
Latest release
v4.7.5GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
Apache-2.0GitHub
First published on GitHub
25 Jan 2021GitHub

References