Skip to main content

1Panel CVE-2025-66508

MEDIUM
Authentication Bypass by Spoofing (CWE-290)
2025-12-09 security-advisories@github.com
6.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach 1Panel web port over network
  2. Delivery
    Add spoofed X-Forwarded-For: 127.0.0.1 header
  3. Exploit
    ClientIP() resolves to trusted IP
  4. Execution
    Pass AllowIPs/whitelist/localhost checks
  5. Impact
    Access 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go github.com/1panel-dev/1panel fix: 2.0.14+incompatible, 2.0.14
go github.com/1panel-dev/1panel/agent fix: 0.0.0-20251201063338-94f7d78cc976

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

Vendor (github) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Medium
popular open-source Linux server control panel, broad but not ubiquitous footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*

More in 1panel

View all
CVE-2024-39911 CRITICAL POC
9.8 Jul 18

1Panel is a web-based linux server management control panel. Rated critical severity (CVSS 9.8), this vulnerability is r

CVE-2024-39907 CRITICAL POC
9.8 Jul 18

1Panel is a web-based linux server management control panel. Rated critical severity (CVSS 9.8), this vulnerability is r

CVE-2024-2352 CRITICAL POC
9.8 Mar 10

A vulnerability, which was classified as critical, has been found in 1Panel up to 1.10.1-lts. Rated critical severity (C

CVE-2023-39966 CRITICAL POC
9.8 Aug 10

1Panel is an open source Linux server operation and maintenance management panel. Rated critical severity (CVSS 9.8), th

CVE-2023-37477 HIGH POC
8.8 Jul 18

1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 8.8), this v

CVE-2023-36458 HIGH POC
8.8 Jul 05

1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 8.8), this v

CVE-2023-36457 HIGH POC
8.8 Jul 05

1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 8.8), this v

CVE-2023-39964 HIGH POC
7.5 Aug 10

1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 7.5), this v

CVE-2024-34352 HIGH POC
7.5 May 14

1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 7.5), this v

CVE-2023-39965 MEDIUM POC
4.3 Aug 10

1Panel is an open source Linux server operation and maintenance management panel. Rated medium severity (CVSS 4.3), this

CVE-2025-66507 HIGH
7.5 Dec 09

CAPTCHA verification in 1Panel 2.0.13 and earlier can be disabled at will by any unauthenticated network client, because

CVE-2024-24768 HIGH
7.5 Feb 05

1Panel is an open source Linux server operation and maintenance management panel. Rated high severity (CVSS 7.5), this v

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy