All vulnerabilities

Servers and applications

CVE-2026-27957

Authenticated RCE via command injection in CA certificate management feature

Severity
High 8.8
Published
25 Jun 2026
Last changed
25 Jun 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.464
Exploit chance
0.8% in the next 30 daysHigher than 57% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)OS command injection (CWE-78)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-7g97-c4xv-3cjx
Sources
Project advisories (GitHub)

Description

An authenticated command injection vulnerability in the CA Certificate management feature allows any authenticated user to execute arbitrary commands as the configured SSH user on the managed server host. As the SSH user typically would have to either be root or part of the docker group for Coolify to function as intended, this provides complete compromise of the managed server and associated docker containers.

app/Livewire/Server/CaCertificate/Show.php

saveCaCertificate() calls openssl_x509_read() to validate the user-supplied certificate, however this check only validates the certificate format up to the -----END CERTIFICATE----- marker. An attacker therefore can inject further content and still pass validation which will eventually be passed to the writeCertificateToServer() function:

writeCertificateToServer() uses user-supplied input including potential malicious content from attacker ($this->certificateContent) directly in a shell (echo) command without sanitisation:

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.464

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