{"id":"CVE-2025-66508","aliases":["CVE-2025-66508","GHSA-7cqv-qcq2-r765","GO-2025-4207"],"related":[],"kind":"vulnerability","state":"published","title":"1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe 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.\n\n### Details\n- 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()`.\n\n- IP-based controls rely on `ClientIP()`:\n    - AllowIPs / BindDomain (core/middleware/ip_limit.go, core/utils/security/security.go).\n    - API IP whitelist (core/middleware/api_auth.go).\n    - \"localhost-only\" checks that depend on `ClientIP()`.\n\n- 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.\n\n### Impact\nAll 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers in github.com/1Panel-dev/1Panel","format":"markdown","source":"go"},{"lang":"es","text":"1Panel es un panel de control de código abierto, basado en web, para la gestión de servidores Linux. Las versiones 2.0.14 e inferiores utilizan la configuración predeterminada de Gin que confía en todas las direcciones IP como proxies (TrustedProxies = 0.0.0.0/0), permitiendo a cualquier cliente falsificar el encabezado X-Forwarded-For. Dado que todos los controles de acceso basados en IP (AllowIPs, listas blancas de API, comprobaciones de solo localhost) dependen de ClientIP(), los atacantes pueden eludir estas protecciones simplemente enviando X-Forwarded-For: 127.0.0.1 o cualquier IP en la lista blanca. Esto hace que todos los controles de seguridad basados en IP sean ineficaces. Este problema está solucionado en la versión 2.0.14.","source":"nvd"}],"published":"2025-12-08T17:56:57.000Z","modified":"2026-10-14T21:10:00.183Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-290"],"affected":[{"ranges":[{"version":"< 2.0.14","status":"affected"}],"vendor":"1Panel-dev","product":"1Panel","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.14"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20251201063338-94f7d78cc976"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel/agent","purl":"pkg:golang/github.com/1Panel-dev/1Panel/agent","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.14+incompatible"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20251201063338-94f7d78cc976"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel/agent","purl":"pkg:golang/github.com/1Panel-dev/1Panel/agent","source":"go"},{"ranges":[{"status":"affected","fixed":"2.0.14"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-7cqv-qcq2-r765","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/1Panel-dev/1Panel/commit/94f7d78cc9768ee244da33e09408017d1f68b5ed","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66508","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/1Panel-dev/1Panel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-12-09T14:17:08.188Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66508","url":"https://www.cve.org/CVERecord?id=CVE-2025-66508","licence":"CVE Terms of Use","modified":"2025-12-09T16:03:08.608Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7cqv-qcq2-r765","url":"https://github.com/advisories/GHSA-7cqv-qcq2-r765","licence":"CC-BY-4.0","modified":"2025-12-17T01:01:43.236Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4207","url":"https://pkg.go.dev/vuln/GO-2025-4207","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:46.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66508","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66508","licence":"Public domain","modified":"2026-10-14T21:10:00.183Z"}],"updatedAt":"2026-11-25T22:59:08.536Z","epss":{"score":0.00271,"percentile":0.20703,"date":"2026-12-01T12:00:22.000Z"}}