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

Source: https://junglewise.ai/threats/cve-2025-66508-1panel-ip-access-control-bypass-via-untrusted-x-forwarded-for  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-09  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/github-com-1panel-dev-1panel). Vendors: [Fit2cloud](https://junglewise.ai/threats/vendors/fit2cloud), [Go](https://junglewise.ai/threats/vendors/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

  ```sh
  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

  ```sh
  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

## Related threats

- [LXware 1Panel CSRF in panel name management](https://junglewise.ai/threats/cve-2025-34430-lxware-1panel-csrf-in-panel-name-management)
- [LXware 1Panel CSRF in web port configuration](https://junglewise.ai/threats/cve-2025-34429-lxware-1panel-csrf-in-web-port-configuration)
- [LXware 1Panel CSRF in Change Username functionality](https://junglewise.ai/threats/cve-2025-34410-lxware-1panel-csrf-in-change-username-functionality)
- [GO-2025-4209 - 1Panel , CAPTCHA Bypass via Client-Controlled Flag in github.com/1Panel-dev/1Panel](https://junglewise.ai/threats/cve-2025-66507-1panel-captcha-bypass-via-client-controlled-flag)
- [GO-2023-2006 - 1Panel arbitrary file write vulnerability in github.com/1Panel-dev/1Panel](https://junglewise.ai/threats/cve-2023-39966-1panel-arbitrary-file-write-vulnerability)
