CVE-2025-54424: Github.com/1Panel dev/1Panel/core 1Panel Agent Certificate Verification Bypass Vulnerability
HIGHCVE-2025-54424 is a HIGH (CVSS 8.1) 1panel agent certificate verification bypass vulnerability (CWE-295: Improper Certificate Validation) affecting Github.com/1Panel dev/1Panel/core libraries in the Go ecosystem. The issue involves 1panel agent certificate verification bypass leading to arbitrary command execution. Remediation is available by upgrading affected packages to version 2.0.6, 0.0.0-20250730021757-04b9cbd87a15.
CVE-2025-54424 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-54424
To remediate this vulnerability, upgrade all affected Github.com/1Panel dev/1Panel/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/1Panel-dev/1Panel/core to 2.0.6
Upgrade github.com/1Panel-dev/1Panel/core to 0.0.0-20250730021757-04b9cbd87a15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/1Panel-dev/1Panel/core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-54424, inspect your project dependencies for Github.com/1Panel dev/1Panel/core:
inspect dependencies for github.com/1Panel-dev/1Panel/core
Analyze the terminal output to locate any version of Github.com/1Panel dev/1Panel/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Github.com/1Panel dev/1Panel/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-54424 Affected Github.com/1Panel dev/1Panel/core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/1Panel-dev/1Panel/core
|
Go |
≥ 1.0.0
< 2.0.6
|
2.0.6
|
|
github.com/1Panel-dev/1Panel/core
|
Go |
< 0.0.0-20250730021757-04b9cbd87a15
|
0.0.0-20250730021757-04b9cbd87a15
|
References
Frequently Asked Questions
What is CVE-2025-54424?
Which Github.com/1Panel dev/1Panel/core versions are affected?
What version fixes CVE-2025-54424?
Is github.com/1Panel-dev/1Panel/core affected?
What is the CVSS score of CVE-2025-54424?
What CWE is associated with CVE-2025-54424?
How can I check Go dependencies for CVE-2025-54424?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8j63-96wh-wh3j",
"modified" : "2025-08-26T20:26:49Z",
"published" : "2025-08-01T18:10:21Z",
"aliases" : [ "CVE-2025-54424" ],
"summary" : "1Panel agent certificate verification bypass leading to arbitrary command execution",
"details" : "### Project Address: Project Address [1Panel](https://github.com/1Panel-dev/1Panel)\n### Official website: https://www.1panel.cn/\n### Time: 2025 07 26\n### Version: 1panel V2.0.5\n### Vulnerability Summary\n - 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.\n - 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.\n\n\n\n### Code audit process\n\n1. First we go to the Agent HTTP routing fileagent/init/router/router.go\n\n\n\n2. It was found that the Routersreference function in the function Certificatewas globally checked.agent/middleware/certificate.go\n\n\n\n3. The discovery Certificatefunction determines c.Request.TLS.HandshakeCompletewhether certificate communication has been performed\n\n\n\n4. Since c.Request.TLS.HandshakeCompletethe true or false judgment is determined by agent/server/server.gothe code Startfunctiontls.RequireAnyClientCert\n\n\n\nNote::`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。`\n\n5. The subsequent Certificatefunction only verified that the CN field of the certificate was panel_client, without verifying the certificate issuer. Finally, it was discovered that the WebSocket connection could bypass Proxy-ID verification.\n\n\n\n6. Process WebSocket interface (based on the above questions, all processes and other sensitive information can be obtained)\nrouting address: /process/ws\nthe request format is as follows\n```\n{\n \"type\": \"ps\", // 数据类型: ps(进程), ssh(SSH会话), net(网络连接), wget(下载进度)\n \"pid\": 123, // 可选,指定进程ID进行筛选\n \"name\": \"process_name\", // 可选,根据进程名筛选\n \"username\": \"user\" // 可选,根据用户名筛选\n}\n```\n\n\n - Terminal SSH WebSocket interface (according to the above problem, any command can be executed)\nrouting address: /hosts/terminal\nthe request format is as follows\n```\n{\n \"type\": \"cmd\",\n \"data\": \"d2hvYW1pCg==\" // \"whoami\" 的base64编码,记住不要忘记回车。\n}\n```\n\n\n - Container Terminal WebSocket interface (container execution command interface)\nrouting address:/containers/terminal\n \n - File Download Process WebSocket interface (automatically push download progress information)\nrouting address:/files/wget/process\n\n### Attack process\n\n1. First generate a fake certificate\nopenssl req -x509 -newkey rsa:2048 -keyout panel_client.key -out panel_client.crt -days 365 -nodes -subj \"/CN=panel_client\"\n\n2. Then use the certificate to request verification. If the websocket interface is successfully connected, there is a vulnerability.\n\n\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/1Panel-dev/1Panel/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "2.0.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/1Panel-dev/1Panel/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20250730021757-04b9cbd87a15"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-8j63-96wh-wh3j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54424"
}, {
"type" : "WEB",
"url" : "https://github.com/1Panel-dev/1Panel/pull/9698/commits/4003284521f8d31ddaf7215d1c30ab8b4cdb0261"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/1Panel-dev/1Panel"
}, {
"type" : "WEB",
"url" : "https://github.com/1Panel-dev/1Panel/releases/tag/v2.0.6"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3834"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295", "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-01T18:10:21Z",
"nvd_published_at" : "2025-08-01T23:15:24Z"
}
}