{"id":"CVE-2023-48312","aliases":["CVE-2023-48312","GHSA-fpvw-6m5v-hqfp","GO-2023-2351"],"related":[],"kind":"vulnerability","state":"published","title":"Authentication bypass using an empty token in capsule-proxy","summary":"capsule-proxy is a reverse proxy for the capsule operator project. Affected versions are subject to a privilege escalation vulnerability which is based on a missing check if the user is authenticated based on the `TokenReview` result. All the clusters running with the `anonymous-auth` Kubernetes API Server setting disable (set to `false`) are affected since it would be possible to bypass the token review mechanism, interacting with the upper Kubernetes API Server. This privilege escalation cannot be exploited if you're relying only on client certificates (SSL/TLS). This vulnerability has been addressed in version 0.4.6. Users are advised to upgrade.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"capsule-proxy is a reverse proxy for the capsule operator project. Affected versions are subject to a privilege escalation vulnerability which is based on a missing check if the user is authenticated based on the `TokenReview` result. All the clusters running with the `anonymous-auth` Kubernetes API Server setting disable (set to `false`) are affected since it would be possible to bypass the token review mechanism, interacting with the upper Kubernetes API Server. This privilege escalation cannot be exploited if you're relying only on client certificates (SSL/TLS). This vulnerability has been addressed in version 0.4.6. Users are advised to upgrade.","source":"cvelist"},{"lang":"en","text":"The privilege escalation is based on a missing check if the user is authenticated based on the `TokenReview` result.\n\nAll the clusters running with the `anonymous-auth` Kubernetes API Server setting disable (set to `false`) are affected since it would be possible to bypass the token review mechanism, interacting with the upper Kubernetes API Server.\n\n# PoC\n\nStart a KinD cluster with the `anonymous-auth` value to `false`. \nIf it is true, it uses anonymous permissions which are very limited by default\n\n```yaml\nkind: Cluster\napiVersion: kind.x-k8s.io/v1alpha4\nnodes:\n- role: control-plane\n  kubeadmConfigPatches:\n  - |\n    kind: ClusterConfiguration\n    apiServer:\n        extraArgs:\n          anonymous-auth: \"false\"\n```\n\nInstall `capsule` and `capsule-proxy`\n\n```\nk port-forward svc/capsule-proxy 9001    \nForwarding from 127.0.0.1:9001 -> 9001\nForwarding from [::1]:9001 -> 9001\nHandling connection for 9001\n```\n\nThen query the proxy\n```\ncurl -g -k -H 'Authorization: Bearer   f' -X 'GET' 'https://localhost:9001/api/v1/namespaces'\n```\n\n# Impact\n\nThe whole cluster is exposed to unauthorised users.\n\nThis privilege escalation cannot be exploited if you're relying only on client certificates (SSL/TLS).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Capsule Proxy Authentication bypass using an empty token in github.com/projectcapsule/capsule-proxy","format":"markdown","source":"go"},{"lang":"es","text":"Capsule-proxy es un proxy inverso para el proyecto del operador de cápsulas. Las versiones afectadas están sujetas a una vulnerabilidad de escalada de privilegios que se basa en una verificación faltante si el usuario está autenticado según el resultado de \"TokenReview\". Todos los clústeres que se ejecutan con la configuración del servidor API de Kubernetes `anonymous-auth` deshabilitada (establecida en `false`) se ven afectados ya que sería posible omitir el mecanismo de revisión de tokens, interactuando con el servidor API de Kubernetes superior. Esta escalada de privilegios no se puede aprovechar si confía únicamente en certificados de cliente (SSL/TLS). Esta vulnerabilidad se ha solucionado en la versión 0.4.6. Se recomienda a los usuarios que actualicen.","source":"nvd"}],"published":"2023-11-24T16:53:25.000Z","modified":"2026-06-17T06:33:59.143Z","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:H","score":9.8,"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:H","score":9.8,"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:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":"< 0.4.6","status":"affected"}],"vendor":"projectcapsule","product":"capsule-proxy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.6"}],"ecosystem":"Go","package":"github.com/projectcapsule/capsule-proxy","purl":"pkg:golang/github.com/projectcapsule/capsule-proxy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.6"}],"ecosystem":"Go","package":"github.com/clastix/capsule-proxy","purl":"pkg:golang/github.com/clastix/capsule-proxy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.6"}],"ecosystem":"Go","package":"github.com/projectcapsule/capsule-proxy","purl":"pkg:golang/github.com/projectcapsule/capsule-proxy","source":"go"},{"ranges":[{"status":"affected","lastAffected":"0.4.5"}],"vendor":"clastix","product":"capsule-proxy","cpe":"cpe:2.3:a:clastix:capsule-proxy:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/projectcapsule/capsule-proxy/security/advisories/GHSA-fpvw-6m5v-hqfp","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/projectcapsule/capsule-proxy/commit/472404f7006a4152e4eec76dee07324dd1e6e823","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48312","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/projectcapsule/capsule-proxy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-48312","url":"https://www.cve.org/CVERecord?id=CVE-2023-48312","licence":"CVE Terms of Use","modified":"2024-08-02T21:23:39.496Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fpvw-6m5v-hqfp","url":"https://github.com/advisories/GHSA-fpvw-6m5v-hqfp","licence":"CC-BY-4.0","modified":"2024-08-21T14:56:40.597Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2351","url":"https://pkg.go.dev/vuln/GO-2023-2351","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:21.052Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-48312","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48312","licence":"Public domain","modified":"2026-06-17T06:33:59.143Z"}],"updatedAt":"2026-11-25T22:58:30.713Z","epss":{"score":0.00706,"percentile":0.54614,"date":"2026-12-01T12:00:22.000Z"}}