Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-66508 EUVD-2025-201792GHSA-7cqv-qcq2-r765GO-2025-4207

1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers

Published Dec 9, 2025 · Updated Dec 9, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
1Panel-dev 1Panel < 2.0.14 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20251230T014957-150000.1.134.1 SUSE-SU-2026:0037-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/1Panel-dev/1Panel < 2.0.14 2.0.14 GHSA-7cqv-qcq2-r765
Go github.com/1Panel-dev/1Panel < 2.0.14+incompatible 2.0.14+incompatible GO-2025-4207
Go github.com/1Panel-dev/1Panel/agent < 0.0.0-20251201063338-94f7d78cc976 0.0.0-20251201063338-94f7d78cc976 GHSA-7cqv-qcq2-r765

Advisories 2

References