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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-34161 PoC — Coolify 安全漏洞

Source
Associated Vulnerability
Title:Coolify 安全漏洞 (CVE-2025-34161)
Description:Coolify是coolLabs开源的一个开源和自托管的 Heroku/Netlify/Vercel 替代品。 Coolify v4.0.0-beta.420.7之前版本存在安全漏洞,该漏洞源于项目部署工作流中存在远程代码执行,可能导致完全控制服务器。
Description
Authenticated low-privileged RCE in Coolify via unsanitized shell commands in the Git Repository field.
Readme
| Field       | Value                          |
|-------------|--------------------------------|
| CVE ID      | CVE-2025-34161                 |
| Affected    | Coolify <= v4.0.0-beta.420.6   |
| Fixed in    | v4.0.0-beta.420.7              |
| Severity    | Critical                       |
| CVSS 4.0    | 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|
| CWE         | CWE-78 (OS Command Injection)  |


## 📝 Summary
Coolify versions prior to and including v4.0.0-beta.420.6 are vulnerable to a critical remote code execution (RCE) flaw in the project deployment workflow. The platform allows authenticated users, with low-level privileges, to inject arbitrary shell commands via the Git Repository URL field during project creation. By submitting a crafted repository string containing command injection syntax, an attacker can execute arbitrary commands on the underlying host system, resulting in full server compromise.

## ⚡ Impact
- Remote Code Execution (RCE)
- Privilege escalation from low-level user to full host compromise
- Complete loss of confidentiality, integrity, and availability

## 🛠️ Steps to Reproduce
1. Login as a low-privileged user  
2. Create a new project
3. Select private GIT 
4. Insert a malicious payload in the `Git Repository URL` field (e.g. ``git@github.com:fake/repo.git; cat /etc/passwd #;``)  
5. Deploy the project → observe arbitrary command execution in the log 

## 🔗 References
- [CVE Record - CVE-2025-34161](https://cve.org/CVERecord?id=CVE-2025-34161)  

File Snapshot

[4.0K] /data/pocs/cbbf27aa6dc432afc7e2027adf808285a0a0c311 └── [1.5K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.