CVE-2025-66508: GO-2025-4207 - 1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers in github.com/1Panel-dev/1Panel

CVE-2025-66508 · Severity: medium · CVSS 6.5 · Published 2025-12-09

1Panel is an open-source, web-based control panel for Linux server management. Versions 2.0.14 and below use Gin's default configuration which trusts all IP addresses as proxies (TrustedProxies = 0.0.0.0/0), allowing any client to spoof the X-Forwarded-For header. Since all IP-based access controls (AllowIPs, API whitelists, localhost-only checks) rely on ClientIP(), attackers can bypass these protections by simply sending X-Forwarded-For: 127.0.0.1 or any whitelisted IP. This renders all IP-based security controls ineffective. This issue is fixed in version 2.0.14.

Technologies: github.com/1Panel-dev/1Panel (Go). Vendors: Fit2cloud, Go.

Quick answers

Is CVE-2025-66508 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-66508 being exploited in the wild.
How severe is CVE-2025-66508?
Medium severity, with a CVSS score of 6.5, published 9 December 2025.
Which products and versions are affected?
github.com/1Panel-dev/1Panel (Go) SEMVER:introduced=0,fixed=2.0.14, SEMVER:introduced=0,fixed=2.0.14+incompatible; github.com/1Panel-dev/1Panel/agent (Go) SEMVER:introduced=0,fixed=0.0.0-20251201063338-94f7d78cc976.
Is there a fix for CVE-2025-66508?
Yes. github.com/1Panel-dev/1Panel (Go): upgrade to 2.0.14, 2.0.14+incompatible or later; github.com/1Panel-dev/1Panel/agent (Go): upgrade to 0.0.0-20251201063338-94f7d78cc976 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-66508?
Check whether you run Fit2cloud 1panel, github.com/1Panel-dev/1Panel (Go) or github.com/1Panel-dev/1Panel/agent (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/1Panel-dev/1Panel (Go): upgrade to 2.0.14, 2.0.14+incompatible or later
    go get github.com/1Panel-dev/1Panel@v2.0.14+incompatible
  • github.com/1Panel-dev/1Panel/agent (Go): upgrade to 0.0.0-20251201063338-94f7d78cc976 or later
    go get github.com/1Panel-dev/1Panel/agent@v0.0.0-20251201063338-94f7d78cc976

Affected products

  • Fit2cloud 1panel
  • github.com/1Panel-dev/1Panel (Go) SEMVER:introduced=0,fixed=2.0.14, SEMVER:introduced=0,fixed=2.0.14+incompatible
  • github.com/1Panel-dev/1Panel/agent (Go) SEMVER:introduced=0,fixed=0.0.0-20251201063338-94f7d78cc976

Identifiers

  • CVE-2025-66508
  • GHSA-7cqv-qcq2-r765
  • GO-2025-4207

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.