🛡️ CVE-2025-66508 — 1panel

🟡 CVSS 6.5 — Medium ✅ No Known Exploit CWE-290 NVD
6.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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().
  • 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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity low, availability none.

Weakness class

CVE-2025-66508 is classified as CWE-290: Authentication Bypass by Spoofing. Identity is inferred from something an attacker can forge, such as a header or address.

Affected software

CVE-2025-66508 is recorded against 3 packages.

  • 1panel (fixed in 2.0.14)
  • github.com/1panel-dev/1panel
  • github.com/1panel-dev/1panel/agent

Timeline and source

Published on 9 December 2025 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com
github.com

Details

Severity MEDIUM
CVSS Score 6.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CWE CWE-290
Public Exploit ✅ No
Source NVD
Published 2025-12-09
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
1panel 2.0.14
github.com/1panel-dev/1panel
github.com/1panel-dev/1panel/agent

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in 1panel

CVE-2025-66508 is rated CVSS 6.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.