{"id":"CVE-2026-55636","aliases":["CVE-2026-55636","GHSA-gwxr-7h77-7777","GO-2026-5406"],"related":[],"kind":"vulnerability","state":"published","title":"Capsule: Incomplete fix of CVE-2026-30963: singular/plural typo leaves namespaces/finalize unprotected","summary":"Capsule is a multi-tenancy and policy-based framework for Kubernetes. From 0.13.0 until 0.13.6, charts/capsule/templates/configuration.yaml configures the validating webhook with namespace/finalize instead of the Kubernetes resource name namespaces/finalize. A user with namespaces/finalize RBAC can send a PUT request to /api/v1/namespaces/{namespace}/finalize, and the singular rule never matches the plural resource, so the validating webhook is not invoked and the user can change the namespace tenant label. matchPolicy: Equivalent does not compensate because it handles API group and version equivalence rather than resource-name errors. This vulnerability is fixed in 0.13.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Capsule is a multi-tenancy and policy-based framework for Kubernetes. From 0.13.0 until 0.13.6, charts/capsule/templates/configuration.yaml configures the validating webhook with namespace/finalize instead of the Kubernetes resource name namespaces/finalize. A user with namespaces/finalize RBAC can send a PUT request to /api/v1/namespaces/{namespace}/finalize, and the singular rule never matches the plural resource, so the validating webhook is not invoked and the user can change the namespace tenant label. matchPolicy: Equivalent does not compensate because it handles API group and version equivalence rather than resource-name errors. This vulnerability is fixed in 0.13.6.","source":"cvelist"},{"lang":"en","text":"### Summary\nCapsule v0.13.2 webhook rules contain `namespace/finalize` (singular) instead of `namespaces/finalize` (plural). K8s requires plural. The finalize defense from CVE-2026-30963 fix is absent.\n\n### Details\nPUT to `/api/v1/namespaces/<ns>/finalize` has resource=namespaces (plural). The singular rule never matches. `matchPolicy: Equivalent` does not compensate.\n\n### PoC\nConfirmed on kind + Capsule v0.13.2. alice (non-admin with namespaces/finalize RBAC): `kubectl label --as=alice` = DENIED (control). `kubectl replace --raw /finalize --as=alice` = 200 OK (bypass). Tenant label changed.\n\n### Impact\nNamespace tenant-label hijack. Same threat model as CVE-2026-30963. One-char fix: `namespace/finalize` -> `namespaces/finalize`.\nThe CVE-2026-30963 fix in Capsule v0.13.2 added subresource entries to the namespace validating webhook, but `charts/capsule/templates/configuration.yaml` line 105 contains a singular/plural typo: `namespace/finalize` instead of `namespaces/finalize`. Kubernetes webhook rules require the plural resource name. The finalize subresource defense is entirely absent.\n\n### Details\nIn Kubernetes admission webhooks, `rules.resources` matches against the plural resource name. A PUT to `/api/v1/namespaces/<ns>/finalize` has `resource=namespaces` (plural). The rule `namespace/finalize` (singular) never matches any real API request.\n\nThe `matchPolicy: Equivalent` setting does NOT compensate (it handles API group/version variations, not resource name typos).\n\n### PoC\nConfirmed on kind cluster + Capsule v0.13.2 (Helm chart):\n```bash\n# Setup: alice with namespaces/finalize RBAC\nkubectl apply -f - <<EOF\napiVersion: rbac.authorization.k8s.io/v1\nkind: ClusterRole\nmetadata:\n  name: ns-finalize-updater\nrules:\n- apiGroups: [\"\"]\n-   resources: [\"namespaces/finalize\"]\n-   verbs: [\"update\"]\n- - apiGroups: [\"\"]\n-   resources: [\"namespaces\"]\n-   verbs: [\"get\", \"list\"]\n- EOF\n- kubectl create clusterrolebinding alice-finalize --clusterrole=ns-finalize-updater --user=alice\n# Control: normal label change DENIED\nkubectl label namespace oil-prod capsule.clastix.io/tenant=evil --overwrite --as=alice\n# Error: admission webhook denied\n\n# Bypass: finalize changes tenant label (webhook NOT invoked)\nkubectl get namespace oil-prod -o json > /tmp/ns.json\n# modify tenant label to \"hijacked\"\nkubectl replace --raw \"/api/v1/namespaces/oil-prod/finalize\" -f /tmp/ns_modified.json --as=alice\n# 200 OK - tenant label changed\n```\n\n### Impact\nNamespace tenant-label hijack via the finalize subresource bypass. Same threat model as CVE-2026-30963. One-character fix needed: `namespace/finalize` -> `namespaces/finalize`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Capsule: Incomplete fix of CVE-2026-30963: singular/plural typo leaves namespaces/finalize unprotected in github.com/projectcapsule/capsule","format":"markdown","source":"go"}],"published":"2026-06-17T18:14:12.000Z","modified":"2026-09-30T17:51:56.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L","score":5.7,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":">= 0.13.0, < 0.13.6","status":"affected"}],"vendor":"projectcapsule","product":"capsule","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.13.0","status":"affected","fixed":"0.13.6"}],"ecosystem":"Go","package":"github.com/projectcapsule/capsule","purl":"pkg:golang/github.com/projectcapsule/capsule","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.13.0","status":"affected","fixed":"0.13.6"}],"ecosystem":"Go","package":"github.com/projectcapsule/capsule","purl":"pkg:golang/github.com/projectcapsule/capsule","source":"go"}],"references":[{"url":"https://github.com/projectcapsule/capsule/security/advisories/GHSA-gwxr-7h77-7777","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/projectcapsule/capsule/pull/1966","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/projectcapsule/capsule/commit/af2f37793e789b2301da8ed8dfb52ab60affebb6","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/projectcapsule/capsule/releases/tag/v0.13.6","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/projectcapsule/capsule","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-15T17:38:16.677Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55636","url":"https://www.cve.org/CVERecord?id=CVE-2026-55636","licence":"CVE Terms of Use","modified":"2026-09-15T18:02:29.068Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gwxr-7h77-7777","url":"https://github.com/advisories/GHSA-gwxr-7h77-7777","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:05.409Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5406","url":"https://pkg.go.dev/vuln/GO-2026-5406","licence":"CC-BY-4.0","modified":"2026-06-25T23:00:16.121Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55636","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55636","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:38.556Z","epss":{"score":0.00277,"percentile":0.21611,"date":"2026-12-01T12:00:22.000Z"}}