{"id":"CVE-2025-54576","aliases":["CVE-2025-54576","GHSA-7rh7-c77v-6434","BIT-OAUTH2-PROXY-2025-54576","GO-2025-3833"],"related":["CGA-p4hq-v8p3-4rvx"],"kind":"vulnerability","state":"published","title":"OAuth2-Proxy has authentication bypass in oauth2-proxy skip_auth_routes due to Query Parameter inclusion","summary":"OAuth2-Proxy is an open-source tool that can act as either a standalone reverse proxy or a middleware component integrated into existing reverse proxy or load balancer setups. In versions 7.10.0 and below, oauth2-proxy deployments are vulnerable when using the skip_auth_routes configuration option with regex patterns. Attackers can bypass authentication by crafting URLs with query parameters that satisfy configured regex patterns, allowing unauthorized access to protected resources. The issue stems from skip_auth_routes matching against the full request URI. Deployments using skip_auth_routes with regex patterns containing wildcards or broad matching patterns are most at risk. This issue is fixed in version 7.11.0. Workarounds include: auditing all skip_auth_routes configurations for overly permissive patterns, replacing wildcard patterns with exact path matches where possible, ensuring regex patterns are properly anchored (starting with ^ and ending with $), or implementing custom validation that strips query parameters before regex matching.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OAuth2-Proxy is an open-source tool that can act as either a standalone reverse proxy or a middleware component integrated into existing reverse proxy or load balancer setups. In versions 7.10.0 and below, oauth2-proxy deployments are vulnerable when using the skip_auth_routes configuration option with regex patterns. Attackers can bypass authentication by crafting URLs with query parameters that satisfy configured regex patterns, allowing unauthorized access to protected resources. The issue stems from skip_auth_routes matching against the full request URI. Deployments using skip_auth_routes with regex patterns containing wildcards or broad matching patterns are most at risk. This issue is fixed in version 7.11.0. Workarounds include: auditing all skip_auth_routes configurations for overly permissive patterns, replacing wildcard patterns with exact path matches where possible, ensuring regex patterns are properly anchored (starting with ^ and ending with $), or implementing custom validation that strips query parameters before regex matching.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis vulnerability affects oauth2-proxy deployments using the `skip_auth_routes` configuration option with regex patterns. The vulnerability allows attackers to bypass authentication by crafting URLs with query parameters that satisfy the configured regex patterns, potentially gaining unauthorized access to protected resources.\n\nThe issue stems from `skip_auth_routes` matching against the full request URI (path + query parameters) instead of just the path as documented. This discrepancy enables authentication bypass attacks where attackers append malicious query parameters to access protected endpoints.\n\nExample Attack:\n\n* Configuration: `skip_auth_routes = [ \"^/foo/.*/bar$\" ]`\n* Intended behavior: Allow `/foo/something/bar`\n* Actual vulnerability: Also allows `/foo/critical_endpoint?param=/bar`\n\nDeployments using `skip_auth_routes` with regex patterns containing wildcards or broad matching patterns are most at risk, especially when backend services ignore unknown query parameters.\n\n\n### Patches\nA patch has been released with version [v7.11.0](https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.11.0).\n\n### Workarounds\n\nImmediate mitigations:\n\n1. Review regex patterns: Audit all `skip_auth_routes` configurations for overly permissive patterns\n2. Use precise patterns: Replace wildcard patterns with exact path matches where possible\n3. Anchor patterns: Ensure regex patterns are properly anchored (start with `^` and end with `$`)\n4. Path-only matching: Consider implementing custom validation that strips query parameters before regex matching\n\nExample secure configuration:\n\n```toml\n# Instead of: \"^/public/.*\"\n# Use specific paths: \"^/public/assets$\", \"^/public/health$\"\nskip_auth_routes = [\"^/public/assets$\", \"^/public/health$\", \"^/api/status$\"]\n ```","format":"markdown","source":"ghsa"},{"lang":"en","text":"OAuth2-Proxy has authentication bypass in oauth2-proxy skip_auth_routes due to Query Parameter inclusion in github.com/oauth2-proxy/oauth2-proxy","format":"markdown","source":"go"},{"lang":"es","text":"OAuth2-Proxy es una herramienta de código abierto que puede actuar como proxy inverso independiente o como componente de middleware integrado en configuraciones existentes de proxy inverso o balanceador de carga. En las versiones 7.10.0 y anteriores, las implementaciones de OAuth2-Proxy son vulnerables al usar la opción de configuración skip_auth_routes con patrones de expresiones regulares. Los atacantes pueden eludir la autenticación manipulando una URL con parámetros de consulta que cumplen con los patrones de expresiones regulares configurados, lo que permite el acceso no autorizado a recursos protegidos. El problema se debe a que skip_auth_routes coincide con la URI de solicitud completa. Las implementaciones que utilizan skip_auth_routes con patrones de expresiones regulares que contienen comodines o patrones de coincidencia general son las más vulnerables. Este problema se solucionó en la versión 7.11.0. Las soluciones alternativas incluyen: auditar todas las configuraciones de skip_auth_routes para detectar patrones excesivamente permisivos, reemplazar los patrones comodín con coincidencias de ruta exactas cuando sea posible, garantizar que los patrones de expresiones regulares estén correctamente anclados (empezando por ^ y terminando por $) o implementar una validación personalizada que elimine los parámetros de consulta antes de la coincidencia con las expresiones regulares.","source":"nvd"}],"published":"2025-07-30T19:41:04.189Z","modified":"2026-09-10T03:50:25.939Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-290"],"affected":[{"ranges":[{"version":"< 7.11.0","status":"affected"}],"vendor":"oauth2-proxy","product":"oauth2-proxy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.11.0"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy/v7","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy/v7","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.11.0"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy/v7","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy/v7","source":"go"},{"ranges":[{"status":"affected","fixed":"7.11.0"}],"vendor":"oauth2_proxy_project","product":"oauth2_proxy","cpe":"cpe:2.3:a:oauth2_proxy_project:oauth2_proxy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.11.0"}],"ecosystem":"Bitnami","package":"oauth2-proxy","purl":"pkg:bitnami/oauth2-proxy","source":"bitnami"}],"references":[{"url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7rh7-c77v-6434","tags":["advisory","exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy/commit/9ffafad4b2d2f9f7668e5504565f356a7c047b77","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy/blob/f4b33b64bd66ad28e9b0d63bea51837b83c00ca1/oauthproxy.go#L582-L584","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy/blob/f4b33b64bd66ad28e9b0d63bea51837b83c00ca1/pkg/requests/util/util.go#L37-L44","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.11.0","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview/#proxy-options","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54576","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-07-30T19:55:23.419Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54576","url":"https://www.cve.org/CVERecord?id=CVE-2025-54576","licence":"CVE Terms of Use","modified":"2025-07-30T19:55:28.553Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7rh7-c77v-6434","url":"https://github.com/advisories/GHSA-7rh7-c77v-6434","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:25.939Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3833","url":"https://pkg.go.dev/vuln/GO-2025-3833","licence":"CC-BY-4.0","modified":"2026-02-04T03:37:20.345Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54576","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54576","licence":"Public domain","modified":"2026-06-17T09:40:20.403Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-OAUTH2-PROXY-2025-54576","url":"https://osv.dev/vulnerability/BIT-OAUTH2-PROXY-2025-54576","licence":"Apache-2.0","modified":"2026-09-08T08:48:10.756Z"}],"updatedAt":"2026-11-25T22:59:01.910Z","epss":{"score":0.01214,"percentile":0.69386,"date":"2026-12-01T12:00:22.000Z"}}