CVE-2025-66508: Github.com/1Panel dev/1Panel 1Panel IP Access Control Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-7cqv-qcq2-r765
CVSS 6.5
CWE-290
Published
Advisory Summary

CVE-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.

CVE-2025-66508 at a Glance

CVE Identifier CVE-2025-66508
GHSA Identifier GHSA-7cqv-qcq2-r765
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-290: Authentication Bypass by Spoofing
Affected Product Github.com/1Panel dev/1Panel
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

github.com/1Panel-dev/1Panel fixed: 2.0.14
Upgrade github.com/1Panel-dev/1Panel to 2.0.14
github.com/1Panel-dev/1Panel/agent fixed: 0.0.0-20251201063338-94f7d78cc976
Upgrade github.com/1Panel-dev/1Panel/agent to 0.0.0-20251201063338-94f7d78cc976
Verify Direct and Transitive Dependencies

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

### Summary The 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. ### Details - 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()`. - IP-based controls rely on `ClientIP()`: - AllowIPs / BindDomain (core/middleware/ip_limit.go, core/utils/security/security.go). - API IP whitelist (core/middleware/api_auth.go). - "localhost-only" checks that depend on `ClientIP()`. - 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. ### Impact All 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.

CVE-2025-66508 Affected Github.com/1Panel dev/1Panel Versions

2 component(s)
Fixed Versions:
2.0.140.0.0-20251201063338-94f7d78cc976
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?
CVE-2025-66508 is a security vulnerability in Github.com/1Panel dev/1Panel involving 1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers under CWE-290: Authentication Bypass by Spoofing.
Which Github.com/1Panel dev/1Panel versions are affected?
Affected versions include releases prior to 2.0.14, 0.0.0-20251201063338-94f7d78cc976 across affected packages: github.com/1Panel-dev/1Panel, github.com/1Panel-dev/1Panel/agent.
What version fixes CVE-2025-66508?
Upgrading to 2.0.14, 0.0.0-20251201063338-94f7d78cc976 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/1Panel-dev/1Panel affected?
Yes, github.com/1Panel-dev/1Panel is affected in releases prior to 2.0.14. Upgrade your dependency to 2.0.14 or later.
Is github.com/1Panel-dev/1Panel/agent affected?
Yes, github.com/1Panel-dev/1Panel/agent is affected in releases prior to 0.0.0-20251201063338-94f7d78cc976. Upgrade your dependency to 0.0.0-20251201063338-94f7d78cc976 or later.
What is the CVSS score of CVE-2025-66508?
CVE-2025-66508 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-66508?
CVE-2025-66508 is classified under CWE-290: Authentication Bypass by Spoofing (This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.).
How can I check Go dependencies for CVE-2025-66508?
Run the dependency tree command: 'inspect dependencies for github.com/1Panel-dev/1Panel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}