CVE-2025-66508 1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers
MediumCVSS 6.5
EPSS 0.27%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
Upgrade path
4 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 1Panel-dev github.com/1Panel-dev/1Panel(Go) | < 2.0.14; < 2.0.14+incompatible | 2.0.14, 2.0.14+incompatible | Fixed |
| 1Panel-dev github.com/1Panel-dev/1Panel/agent(Go) | < 0.0.0-20251201063338-94f7d78cc976 | 0.0.0-20251201063338-94f7d78cc976 | Fixed |
| fit2cloud 1panel | < 2.0.14 | 2.0.14 | Fixed |
| 1Panel-dev github.com/1Panel-dev/1Panel | = < 2.0.14 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| 1Panel-dev github.com/1Panel-dev/1Panel(Go) | < 2.0.14 | 2.0.14 |
| 1Panel-dev github.com/1Panel-dev/1Panel/agent(Go) | < 0.0.0-20251201063338-94f7d78cc976 | 0.0.0-20251201063338-94f7d78cc976 |
| 1Panel-dev github.com/1Panel-dev/1Panel(Go) | < 2.0.14+incompatible | 2.0.14+incompatible |
| 1Panel-dev github.com/1Panel-dev/1Panel | = < 2.0.14 | No fix listed |
| fit2cloud 1panel | < 2.0.14 | 2.0.14 |
References
- https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-7cqv-qcq2-r765 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/1Panel-dev/1Panel/commit/94f7d78cc9768ee244da33e09408017d1f68b5ed patch
- github.com product
- github.com