CVE 6.5 MEDIUM

1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers_CVE-2025-66508

6.5 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

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.

Basic Information

ID CVE-2025-66508
Source GitHub_M
Published Dec 9, 2025 at 01:37

Affected Product

Vendor 1Panel-dev
Product 1Panel
Version < 2.0.14
Affected Versions 1Panel-dev 1Panel < 2.0.14

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.