CVE-2026-27957
Received Received - Intake

Authenticated Command Injection in Coolify Prior to 4.0.0-beta.464

Vulnerability report for CVE-2026-27957, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-06-30

Assigner: GitHub, Inc.

Description

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.464, 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. This vulnerability is fixed in 4.0.0-beta.464.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-06-30
Generated
2026-06-30
AI Q&A
2026-06-30
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
coollabsio coolify to 4.0.0-beta.464 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an authenticated command injection in the CA Certificate management feature of Coolify, an open-source tool for managing servers and applications.

It occurs because the application only validates the certificate format up to the -----END CERTIFICATE----- marker, allowing an attacker to inject malicious content beyond this point.

The injected certificate content is then passed directly to a shell command without proper sanitization, enabling execution of arbitrary commands as the configured SSH user on the managed server.

Since the SSH user typically has root or Docker group privileges, this leads to complete compromise of the managed server and its Docker containers.

Impact Analysis

This vulnerability can lead to a complete compromise of the managed server and associated Docker containers.

  • An attacker with authenticated access can execute arbitrary commands as the SSH user.
  • The attacker can read all files and credentials on the server.
  • It allows pivoting to other systems and potential privilege escalation.
Detection Guidance

Detection of this vulnerability involves identifying if your Coolify instance is running a vulnerable version (prior to 4.0.0-beta.464) and if the CA Certificate management feature is being used.

Since the vulnerability allows command injection via the certificate content, monitoring for unusual or unauthorized command executions by the SSH user associated with Coolify could indicate exploitation attempts.

You can check the installed Coolify version with commands like:

  • coolify --version
  • docker ps | grep coolify (to identify running containers and their versions)

Additionally, reviewing logs for suspicious commands executed by the SSH user or unusual activity in the CA Certificate management feature may help detect exploitation.

Mitigation Strategies

The immediate mitigation step is to upgrade Coolify to version 4.0.0-beta.464 or later, where this vulnerability is fixed.

If upgrading immediately is not possible, restrict access to the CA Certificate management feature to trusted users only, as the vulnerability requires authentication.

Also, monitor and audit the commands executed by the SSH user associated with Coolify to detect any suspicious activity.

The fix involves sanitizing the certificate content using openssl_x509_export() after validation to prevent command injection.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-27957. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart