{"id":"GHSA-7cqv-qcq2-r765","revision":"a5321bfea8a347b6a61b47e23edcb361","records":[{"revision":"a5321bfea8a347b6a61b47e23edcb361","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-7cqv-qcq2-r765","aliases":["CVE-2025-66508","GO-2025-4207"],"title":"1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers","description":"### 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.","state":0,"publishedAt":"2025-12-08T17:56:57+00:00","modifiedAt":"2025-12-17T01:01:43.236248+00:00","affected":[{"ecosystem":"Go","name":"github.com/1Panel-dev/1Panel","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.14"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/1Panel-dev/1Panel/agent","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20251201063338-94f7d78cc976"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-7cqv-qcq2-r765","https://nvd.nist.gov/vuln/detail/CVE-2025-66508","https://github.com/1Panel-dev/1Panel/commit/94f7d78cc9768ee244da33e09408017d1f68b5ed","https://github.com/1Panel-dev/1Panel"],"sourceUrl":"https://github.com/advisories/GHSA-7cqv-qcq2-r765","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7cqv-qcq2-r765","identifiers":["GHSA-7cqv-qcq2-r765","CVE-2025-66508","GO-2025-4207"]},"retained":false,"historicalAffected":[]}],"coverage":[]}