Vulnerabilities in pkg:golang/github.com/1Panel-dev/1Panel/agent
PACKAGECVE-2025-66508 is a MODERATE (CVSS 6.5) 1panel ip access control bypass vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Github.com/1Panel dev/1Panel libraries in the Go ecosystem. The issue involves 1panel ip access control bypass via untrusted x-forwarded-for headers. Remediation is available by upgrading affected packages to version 2.0.14, 0.0.0-20251201063338-94f7d78cc976.
pkg:golang/github.com/1Panel-dev/1Panel/agent
Vulnerability advisories affecting package pkg:golang/github.com/1Panel-dev/1Panel/agent. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7cqv-qcq2-r765 | CVE-2025-66508 | MODERATE | 1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers |
CVE-2025-66508 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2025-66508
To remediate this vulnerability, upgrade all affected Github.com/1Panel dev/1Panel 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 to 2.0.14
Upgrade github.com/1Panel-dev/1Panel/agent to 0.0.0-20251201063338-94f7d78cc976
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
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-66508, inspect your project dependencies for Github.com/1Panel dev/1Panel:
inspect dependencies for github.com/1Panel-dev/1Panel
Analyze the terminal output to locate any version of Github.com/1Panel dev/1Panel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.14), 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-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Github.com/1Panel dev/1Panel, 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-66508 Affected Github.com/1Panel dev/1Panel Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/1Panel-dev/1Panel
|
Go |
< 2.0.14
|
2.0.14
|
|
github.com/1Panel-dev/1Panel/agent
|
Go |
< 0.0.0-20251201063338-94f7d78cc976
|
0.0.0-20251201063338-94f7d78cc976
|
References
Frequently Asked Questions
What is CVE-2025-66508?
Which Github.com/1Panel dev/1Panel versions are affected?
What version fixes CVE-2025-66508?
Is github.com/1Panel-dev/1Panel affected?
Is github.com/1Panel-dev/1Panel/agent affected?
What is the CVSS score of CVE-2025-66508?
What CWE is associated with CVE-2025-66508?
How can I check Go dependencies for CVE-2025-66508?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7cqv-qcq2-r765",
"modified" : "2025-12-17T00:47:24Z",
"published" : "2025-12-08T17:56:57Z",
"aliases" : [ "CVE-2025-66508" ],
"summary" : "1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers",
"details" : "### Summary\nThe server trusts all reverse-proxy headers by default, so any remote client can spoof `X-Forwarded-For` to bypass IP-based protections (AllowIPs, API IP whitelist, “localhost-only” checks). All IP-based access control becomes ineffective.\n\n### Details\n- Gin is created with defaults (`gin.Default()`), which sets `TrustedProxies = 0.0.0.0/0` and uses `X-Forwarded-For`/`X-Real-IP` to compute `ClientIP()`.\n\n- IP-based controls rely on `ClientIP()`:\n - AllowIPs / BindDomain (core/middleware/ip_limit.go, core/utils/security/security.go).\n - API IP whitelist (core/middleware/api_auth.go).\n - \"localhost-only\" checks that depend on `ClientIP()`.\n\n- Because no trusted-proxy range is enforced, any client can send `X-Forwarded-For: 127.0.0.1` (or a whitelisted IP) and be treated as coming from that address.\n\n### Impact\nAll IP-based access control is rendered ineffective: remote clients can masquerade as localhost or any whitelisted IP, defeating AllowIPs, API IP whitelists, and “localhost-only” protections.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/1Panel-dev/1Panel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/1Panel-dev/1Panel/agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20251201063338-94f7d78cc976"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-7cqv-qcq2-r765"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66508"
}, {
"type" : "WEB",
"url" : "https://github.com/1Panel-dev/1Panel/commit/94f7d78cc9768ee244da33e09408017d1f68b5ed"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/1Panel-dev/1Panel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-290" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-08T17:56:57Z",
"nvd_published_at" : "2025-12-09T16:18:19Z"
}
}