CVE-2025-54424: 1Panel Agent Bypasses Certificate Verification Leading to Arbitrary Command Execution

Published Aug 1, 2025
·
Updated

Project Address: Project Address 1Panel Official website: https://www.1panel.cn/ Time: 2025 07 26 Version: 1panel V2.0.5 Vulnerability Summary - First, we introduce the concepts of 1panel v2 Core and Agent. After the new version is released, 1panel adds the node management function, which allows you to control other hosts by adding nodes. - The HTTPS protocol used for communication between the Core and Agent sides did not fully verify the authenticity of the certificate during certificate verification, resulting in unauthorized interfaces. The presence of a large number of command execution or high-privilege interfaces in the 1panel led to RCE.

!

Code audit process

1. First we go to the Agent HTTP routing fileagent/init/router/router.go

!

2. It was found that the Routersreference function in the function Certificatewas globally checked.agent/middleware/certificate.go

!

3. The discovery Certificatefunction determines c.Request.TLS.HandshakeCompletewhether certificate communication has been performed

!

4. Since c.Request.TLS.HandshakeCompletethe true or false judgment is determined by agent/server/server.gothe code Startfunctiontls.RequireAnyClientCert

!

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。

5. The subsequent Certificatefunction only verified that the CN field of the certificate was panelclient, without verifying the certificate issuer. Finally, it was discovered that the WebSocket connection could bypass Proxy-ID verification.

!

6. Process WebSocket interface (based on the above questions, all processes and other sensitive information can be obtained) routing address: /process/ws the request format is as follows { "type": "ps", // 数据类型: ps(进程), ssh(SSH会话), net(网络连接), wget(下载进度) "pid": 123, // 可选,指定进程ID进行筛选 "name": "processname", // 可选,根据进程名筛选 "username": "user" // 可选,根据用户名筛选 } !

- Terminal SSH WebSocket interface (according to the above problem, any command can be executed) routing address: /hosts/terminal the request format is as follows { "type": "cmd", "data": "d2hvYW1pCg==" // "whoami" 的base64编码,记住不要忘记回车。 } !

- Container Terminal WebSocket interface (container execution command interface) routing address:/containers/terminal - File Download Process WebSocket interface (automatically push download progress information) routing address:/files/wget/process

Attack process

1. First generate a fake certificate openssl req -x509 -newkey rsa:2048 -keyout panelclient.key -out panelclient.crt -days 365 -nodes -subj "/CN=panelclient"

2. Then use the certificate to request verification. If the websocket interface is successfully connected, there is a vulnerability.

!

!

Other sources

1Panel is a web interface and MCP Server that manages websites, files, containers, databases, and LLMs on a Linux server. In versions 2.0.5 and below, the HTTPS protocol used for communication between the Core and Agent endpoints has incomplete certificate verification during certificate validation, leading to unauthorized interface access. Due to the presence of numerous command execution or high-privilege interfaces in 1Panel, this results in Remote Code Execution (RCE). This is fixed in version 2.0.6. The CVE has been translated from Simplified Chinese using GitHub Copilot.

MITRE

Affected Software

3 affected componentsFixes available
go/github.com/1Panel-dev/1Panel/core<0.0.0-20250730021757-04b9cbd87a15
0.0.0-20250730021757-04b9cbd87a15
go/github.com/1Panel-dev/1Panel/core>=1.0.0<2.0.6
2.0.6
FIT2CLOUD 1Panel<2.0.6

Event History

Aug 1, 2025
Advisory Published
via GitHub·06:10 PM
Data Sourced
via GitHub·06:10 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·11:04 PM
Data Sourced
via MITRE·11:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
RemedyAffected Software
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-2025-54424?

CVE-2025-54424 is classified as a critical vulnerability affecting 1Panel version 2.0.5.

2

How do I fix CVE-2025-54424?

To remediate CVE-2025-54424, upgrade to version 2.0.6 or apply the mitigation provided in the advisory.

3

Which versions of 1Panel are affected by CVE-2025-54424?

CVE-2025-54424 affects version 2.0.5 of 1Panel and any prior versions.

4

What are the potential risks of CVE-2025-54424?

Exploiting CVE-2025-54424 may allow an attacker to gain unauthorized access or execute arbitrary code.

5

Is there a patch available for CVE-2025-54424?

Yes, a patch is available in version 2.0.6 of 1Panel to address CVE-2025-54424.

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