1Panel
CVE-2025-66508
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach 1Panel web port over network
-
DeliveryAdd spoofed X-Forwarded-For: 127.0.0.1 header
-
ExploitClientIP() resolves to trusted IP
-
ExecutionPass AllowIPs/whitelist/localhost checks
-
ImpactAccess IP-restricted panel functions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target 1Panel instance (version 2.0.13 or earlier) actually relies on 1Panel's IP-based access controls - specifically AllowIPs/BindDomain (ip_limit.go), the API IP whitelist (api_auth.go), or 'localhost-only' checks - all of which derive trust from Gin's ClientIP(). The attacker needs only network reachability to the 1Panel HTTP service and the ability to set the X-Forwarded-For (or X-Real-Ip) header to 127.0.0.1 or any permitted IP; no authentication, user interaction, or special configuration is needed to spoof the header (AV:N/AC:L/PR:N/UI:N). The key LIMITING factor is that the impact is confined to defeating IP-based gating: deployments that do not depend on IP allowlisting, or that place 1Panel behind a properly configured reverse proxy that strips/normalizes X-Forwarded-For, gain little exposed surface, and any additional authentication/token requirements on the protected endpoints still apply after the IP check is bypassed. |
| Impact | This is a genuine but moderate-priority access-control weakness, not a high-impact crisis. CVSS 3.1 scores it 6.5 (Medium) with an attacker-friendly profile - AV:N/AC:L/PR:N/UI:N means any remote, unauthenticated client can trigger it trivially by adding a single HTTP header - but the Confidentiality/Integrity impact is only Low (C:L/I:L) and there is no Availability impact, because the flaw bypasses IP-based gating rather than directly granting code execution or full admin takeover. The real-world risk signals are mixed-to-low: EPSS is only 0.25% (16th percentile), the vulnerability is NOT in CISA KEV, and no public exploit code is referenced, so there is no evidence of active or widespread exploitation. The low EPSS is consistent with a bypass whose severity depends entirely on whether an operator actually relied on 1Panel's IP AllowIPs / API whitelist / localhost-only controls as a primary defense - environments that also require authentication tokens are far less exposed. One signal to weigh carefully: the attack is highly automatable and trivial (AC:L, PR:N), which argues for prompt patching even though EPSS/KEV currently rate it low; the gap between 'trivial to exploit' and 'low observed exploitation' suggests limited attacker interest or limited exposed deployments rather than technical difficulty. SSVC-style read: Exploitation=none observed, Automatable=yes, Technical Impact=partial. |
| Exploit ScenarioDerived | An attacker who can reach a 1Panel instance that is protected only by an IP allowlist or 'localhost-only' restriction sends a normal HTTP request with an added 'X-Forwarded-For: 127.0.0.1' (or any whitelisted IP) header. Because Gin's default configuration trusts all proxies, ClientIP() returns the spoofed address and the request is treated as originating from a permitted source, bypassing AllowIPs, the API IP whitelist, and localhost-only checks. No public exploit code is identified, but the technique is trivial and requires no special tooling beyond adding one header. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
1Panel versions 2.0.14 and earlier trust all network peers as reverse proxies, so a remote unauthenticated attacker can spoof the X-Forwarded-For header (for example, set it to 127.0.0.1) and have the application treat the request as originating from localhost or any whitelisted address. Because every IP-based control in 1Panel - the AllowIPs/BindDomain restriction, the API IP whitelist, and 'localhost-only' checks - is derived from Gin's ClientIP(), these protections are rendered ineffective. No public exploit code has been identified at time of analysis and the vulnerability is not in CISA KEV; EPSS is low at roughly 0.25% (16th percentile), and the vendor has released a fix in version 2.0.14.
RemediationAI
Upgrade to 1Panel 2.0.14 or later, which is the vendor-released patch for this issue (commit 94f7d78cc9768ee244da33e09408017d1f68b5ed); the agent module is fixed at 0.0.0-20251201063338-94f7d78cc976. Full guidance is in the GHSA advisory at https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-7cqv-qcq2-r765. Until upgrading, the most effective compensating control is to place 1Panel behind a reverse proxy that unconditionally strips or overwrites incoming X-Forwarded-For and X-Real-IP headers before forwarding traffic, so that spoofed client values never reach the application (trade-off: the proxy must itself be correctly configured and hardened, and legitimate forwarding information will be normalized rather than passed through). Administrators who cannot upgrade should treat 1Panel's IP-based controls as non-authoritative and compensate by exposing the panel only on a restricted management network or VPN, and by ensuring strong authentication and API tokens are required on every protected endpoint, since - per the assessment - any additional authentication or token requirements still apply after the IP check is bypassed. Disabling or not depending on the AllowIPs/API-whitelist/localhost-only features removes the attack surface but also removes those layered checks, so it should be paired with network-level segmentation.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-290 (Authentication Bypass by Spoofing). 1Panel is written in Go and built on the Gin web framework; it constructs its router using Gin's default configuration, which sets TrustedProxies to 0.0.0.0/0. Under this setting Gin accepts X-Forwarded-For and X-Real-IP values from any client and uses them to compute ClientIP(), the single source of truth consulted by all of 1Panel's IP-based gating logic - the AllowIPs/BindDomain middleware (core/middleware/ip_limit.go, core/utils/security/security.go), the API IP whitelist (core/middleware/api_auth.go), and internal 'localhost-only' checks. Since no trusted-proxy range is enforced, an attacker simply injects a header such as X-Forwarded-For: 127.0.0.1 to be treated as a loopback or whitelisted source. The exposed CPE is cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*. The fixing commit (94f7d78cc9768ee244da33e09408017d1f68b5ed) also reworks firewall/iptables state handling, hardening related network-boundary assumptions. The vulnerability class is a trust-boundary failure: spoofable, client-supplied headers are used for authorization decisions rather than for logging or routing only.
Know when 1panel gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Remote, trivially header-spoofed and unauthenticated (AV:N/AC:L/PR:N/UI:N); impact is partial since it only bypasses IP gating to protected functions, so C:L/I:L and A:N.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
1Panel is a web-based linux server management control panel. Rated critical severity (CVSS 9.8), this vulnerability is r
1Panel is a web-based linux server management control panel. Rated critical severity (CVSS 9.8), this vulnerability is r
A vulnerability, which was classified as critical, has been found in 1Panel up to 1.10.1-lts. Rated critical severity (C
1Panel is an open source Linux server operation and maintenance management panel. Rated critical severity (CVSS 9.8), th
1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 8.8), this v
1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 8.8), this v
1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 8.8), this v
1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 7.5), this v
1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 7.5), this v
1Panel is an open source Linux server operation and maintenance management panel. Rated medium severity (CVSS 4.3), this
CAPTCHA verification in 1Panel 2.0.13 and earlier can be disabled at will by any unauthenticated network client, because
1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 7.5), this v
NVD
CVE.org
EPSS
GitHub
Exploit-DB