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