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

Published Jul 7, 2026
·
Updated

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 dockercomposecustombuildcommand or dockercomposecustomstartcommand 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.

Affected Software

1 affected component
Coolify<4.0.0-beta.469

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Coolify to a version that resolves this vulnerability.

    Fixed in 4.0.0-beta.469

Event History

Jul 7, 2026
CVE Published
via MITRE·03:28 AM
Data Sourced
via MITRE·03:28 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-34158?

The severity of CVE-2026-34158 is high with a score of 8.8.

2

How do I fix CVE-2026-34158?

To fix CVE-2026-34158, upgrade Coolify to version 4.0.0-beta.469 or later.

3

What type of vulnerability is CVE-2026-34158?

CVE-2026-34158 is an OS Command Injection vulnerability.

4

Who can exploit CVE-2026-34158?

Attackers who can edit application settings in Coolify can exploit CVE-2026-34158.

5

What can attackers achieve through CVE-2026-34158?

Attackers can execute arbitrary commands on the system due to improper handling of user-controlled commands in Coolify.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203