Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-34158— Coolify: Command injection via single-quote breakout in Docker Compose custom commands

Quick assessment

Affected
coollabsio coolify
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

coolLabs Coolify是coolLabs团队开源的一个开源和自托管的 Heroku/Netlify/Vercel 替代品。 coolLabs Coolify 4.0.0-beta.469之前版本存在命令注入漏洞,该漏洞源于executeInDocker()辅助函数将用户控制的命令包裹在单引号中而未转义内嵌的单引号,攻击者可通过编辑应用程序设置在docker_compose_custom_build_command或docker_compose_custom_start_command中注入单引号

CVSS 8.8 · High EPSS 0.65% · P49

Affected Version Matrix 1

VendorProduct Version RangeStatus
coollabsio coolify < 4.0.0-beta.469 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-34158

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Coolify: Command injection via single-quote breakout in Docker Compose custom commands
Source: CVE Program / CVE List V5
Vulnerability Description
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.469, the executeInDocker() helper wraps user-controlled commands in single quotes without escaping embedded single quotes. Attackers who can edit application settings can inject a single quote into docker_compose_custom_build_command or docker_compose_custom_start_command to break out of the quoted context and execute arbitrary commands on the managed server host during deployments, escaping the intended Docker container confinement. This issue is fixed in version 4.0.0-beta.469.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
coolLabs Coolify 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
coolLabs Coolify是coolLabs团队开源的一个开源和自托管的 Heroku/Netlify/Vercel 替代品。 coolLabs Coolify 4.0.0-beta.469之前版本存在命令注入漏洞,该漏洞源于executeInDocker()辅助函数将用户控制的命令包裹在单引号中而未转义内嵌的单引号,攻击者可通过编辑应用程序设置在docker_compose_custom_build_command或docker_compose_custom_start_command中注入单引号
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
coollabsio coolify < 4.0.0-beta.469 -

II. Public POCs for CVE-2026-34158

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7053 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-34158

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-34158 (1)

Same Patch Batch · coollabsio · 2026-07-07 · 21 CVEs total

CVE-2026-34047 9.9 CRITICAL Coolify: WebSocket Endpoint Access Control Flaw Leading to Remote Code Execution
CVE-2026-34048 9.9 CRITICAL Coolify: Missing authorization on terminal websocket bootstrap routes allows low-privilege
CVE-2026-34037 9.9 CRITICAL Cross-Tenant Resource Cloning via Broken Object-Level Authorization in cloneTo()
CVE-2026-42200 8.8 HIGH Coolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCE
CVE-2026-42143 8.8 HIGH Coolify: OS Command Injection via Persistent Volume Names - Root RCE on Managed Servers
CVE-2026-34057 8.8 HIGH Coolify: Authenticated Remote Code Execution via Command Injection in Database Import Cont
CVE-2026-34035 8.8 HIGH Coolify: Host RCE via Log Drain secret/env command injection
CVE-2026-34152 8.8 HIGH Coolify: Command Injection via Newline in Pre/Post Deployment Commands (Heredoc Transport)
CVE-2026-34034 8.8 HIGH Coolify: Host RCE via Sentinel token injection
CVE-2026-34168 8.8 HIGH Coolify: Command injection via unsanitized persistent storage name in docker volume comman
CVE-2026-34058 8.8 HIGH Coolify: OS Command Injection via Unmanaged Container Operations - Remote Code Execution
CVE-2026-34171 8.0 HIGH Coolify: Account takeover via CSRF-able GET endpoint that resets password to attacker-know
CVE-2026-34044 7.7 HIGH Coolify: Cross-team IDOR in logs component (resource lookup not team-scoped)
CVE-2026-34198 5.3 MEDIUM Coolify: Password reset link poisoning via X-Forwarded-Host header spoofing
CVE-2026-42147 4.9 MEDIUM Coolify: SSRF via S3 Storage Endpoint in testConnection()
CVE-2026-34170 4.3 MEDIUM Coolify: Server-Side Request Forgery via attacker-controlled GitHub App API URL
CVE-2026-34149 3.3 LOW Coolify: Authenticated Host-Level RCE via Unescaped Database Credentials in Backup Jobs
CVE-2026-42201 3.3 LOW Coolify: OS Command Injection via Database Credential Fields in Docker Compose Service Com
CVE-2026-42172 3.1 LOW Coolify: Sanctum API Tokens Have No Expiration — Leaked Tokens Grant Permanent Access
CVE-2026-42145 3.1 LOW Coolify: File Upload Without Type or Size Validation in Database Backup Restore

IV. Related Vulnerabilities

V. Comments for CVE-2026-34158

No comments yet


Leave a comment