CVE-2025-66508: 1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers
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().
Published Dec 8, 2025 · Updated Dec 9, 2025
Affected packages
github.com/1Panel-dev/1Panel
- Ecosystem
- Go
- Affected
- < 2.0.14
- Fixed in
- 2.0.14
- Check
go list -m github.com/1Panel-dev/1Panel
github.com/1Panel-dev/1Panel/agent
- Ecosystem
- Go
- Affected
- < 0.0.0-20251201063338-94f7d78cc976
- Fixed in
- 0.0.0-20251201063338-94f7d78cc976
- Check
go list -m github.com/1Panel-dev/1Panel/agent
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 setsTrustedProxies = 0.0.0.0/0and usesX-Forwarded-For/X-Real-IPto computeClientIP().
- 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.
Credited to Threonine.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2025-34410
1Panel contains a cross-site request forgery (CSRF) vulnerability in the Change Username functionality
high7.1No fixDec 10, 2025CVE-2025-34429
1Panel contains a cross-site request forgery (CSRF) vulnerability in the web port configuration functionality
high7.1No fixDec 10, 2025CVE-2025-34430
1Panel contains a cross-site request forgery (CSRF) vulnerability in the panel name management functionality
medium4.3No fixDec 10, 2025CVE-2025-66507
1Panel – CAPTCHA Bypass via Client-Controlled Flag
high7.5Dec 8, 2025CVE-2024-39907
1Panel has an SQL injection issue related to the orderBy clause
critical9.8Jul 18, 2024CVE-2024-34352
1Panel arbitrary file write vulnerability
medium6.5May 9, 2024
