CVE-2025-32963: Github.com/minio/operator Minio Operator Uses Kubernetes Apiserver Vulnerability

MODERATE
Advisory Identifier: GHSA-7m6v-q233-q9j9
CWE-522
Published
Advisory Summary

CVE-2025-32963 is a MODERATE minio operator uses kubernetes apiserver vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Github.com/minio/operator libraries in the Go ecosystem. The issue involves minio operator uses kubernetes apiserver audience for assumerolewithwebidentity sts. Remediation is available by upgrading affected packages to version 7.1.0.

CVE-2025-32963 at a Glance

CVE Identifier CVE-2025-32963
GHSA Identifier GHSA-7m6v-q233-q9j9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Github.com/minio/operator
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-32963

To remediate this vulnerability, upgrade all affected Github.com/minio/operator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/minio/operator fixed: 7.1.0
Upgrade github.com/minio/operator to 7.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/minio/operator

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-32963, inspect your project dependencies for Github.com/minio/operator:

inspect dependencies for github.com/minio/operator

Analyze the terminal output to locate any version of Github.com/minio/operator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Github.com/minio/operator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Prevent token leakage / privilege escalation ## MinIO Operator STS: A Quick Overview MinIO Operator STS is a native IAM Authentication for Kubernetes. MinIO Operator offers support for [Secure Tokens](https://min.io/docs/minio/linux/developers/security-token-service.html?ref=op-gh) (a.k.a. STS) which are a form of temporary access credentials for your MinIO Tenant. In essence, this allows you to control access to your MinIO tenant from your applications without having to explicitly create credentials for each application. For an application to gain access into a MinIO Tenant, a `PolicyBinding` resource is required, granting explicit access to the applications by validating the kubernetes [Service Account](https://kubernetes.io/docs/concepts/security/service-accounts/) authorization token. The service account token is validated as follows: 1. The application calls `AssumeRoleWithWebIdentity` API MinIO Operator provides. 2. MinIO Operator verifies the Service Account token agains the kubernetes API using the [TokenReview API](https://kubernetes.io/docs/reference/kubernetes-api/authentication-resources/token-review-v1/) 3. MinIO Operator reviews the TokenReviewResult confirms if the token is a valid token and the user is authenticated. 4. MinIO Operator validates the service account has `PolicyBinding` in the Tenant namespace. 5. MinIO Operator gets the PolicyBinding 6. MinIO Operator calls the AssumeRole API in the MinIO Tenant 7. MinIO Operator obtains temporary credentials (STS). 8. MinIO Operator return temporary Credentials to the requester application. 9. The applicaiton consumes Object Storage using the temporary credentials. ![STS Diagram](https://raw.githubusercontent.com/minio/operator/master/docs/images/sts-diagram.png) ## Understanding Audiences in Kubernetes TokenReview In step 2 the `TokenReview` API call attempts to authenticate a token to a known user, TokenReviewStatus is the result of the `TokenReview` request. Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the `spec.audiences` field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. **If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.** ## Solution: Properly Issuing and Using Audience-Specific ServiceAccount Tokens This PR ensures the Operator STS service request the Service Account JWT to belong to the audience`sts.min.io` in the TokenReviewRequest. This PR ensures the examples and documentation provided guides in how to create Service accounts with "disabled auto mount services tokens", by doing this the pods where the service account is used no longer mounts the service account automatically in the path `/var/run/secrets/kubernetes.io/serviceaccount`. For illustrative purposes, here is how you disable auto mount of service account tokens at the service account level. ```yaml apiVersion: v1 kind: ServiceAccount metadata: namespace: namespace-name name: service-account name automountServiceAccountToken: false ``` Additionally documentation and examples show how to request an audience-specific token with audience `sts.min.io`, by asking for an ServiceAccount Token to be audience specific. For illustrative purposes, here is how you request an audience specific service account token in a pod: ```yaml apiVersion: batch/v1 kind: Job metadata: name: job-name namespace: job-namespace spec: template: spec: serviceAccountName: service-account-name volumes: - name: sa-token projected: sources: - serviceAccountToken: audience: "sts.min.io" expirationSeconds: 86400 path: token containers: - name: mc ... volumeMounts: - name: sa-token mountPath: /var/run/secrets/sts.min.io/serviceaccount readOnly: true ``` ### How this prevent a token leakage or possible privilege escalation?. This setup prevents privilege escalation and token leakage by combining multiple defense-in-depth mechanisms that ensure service account tokens are only usable by their intended audience, short-lived, and not exposed unnecessarily. #### Audience restriction (aud: sts.min.io) **Problem**: A ServiceAccount token is often valid for multiple audiences (e.g., the default Kubernetes API server). Without scoping, it can be replayed to other internal systems, which may unintentionally trust it. **Mitigation**: Now we enforce that tokens are explicitly created for the sts.min.io audience using the Kubernetes TokenRequest API, and the MinIO Operator: Sends audiences: ["sts.min.io"] in the TokenReview. Verifies that the token was issued with this audience via status.audiences. **Effect**: Even if a token is stolen or misused, it will fail validation if used outside the sts.min.io STS endpoint (e.g., reused at the API server or another service). #### Token Leakage Mitigation Disabling auto-mounted service account tokens **Problem**: By default, Kubernetes mounts long-lived service account tokens into all pods at `/var/run/secrets/kubernetes.io/serviceaccount`, making them vulnerable to theft if the container is compromised. **Mitigation**: No we guide users to set `automountServiceAccountToken: false` in their ServiceAccount definitions. **Effect**: Prevents automatic token injection into all pods, reducing the attack surface. #### Requesting short-lived, audience-specific tokens via serviceAccountToken projection **Problem**: Long-lived tokens can be reused indefinitely if leaked. **Mitigation**: You use projected service account tokens with: - audience: "sts.min.io" - A short expirationSeconds (e.g., 86400 = 24 hours, or even shorter) **Effect**: Even if the token is leaked, it is: - Only usable for sts.min.io - Short-lived and expires soon - Revocable by disabling the SA or STS access ## Affected Versions and Risk Assessment The issue affects MinIO Operator versions v5.0.x and above, when the STS feature was first introduced. * In v5.0.x, STS was introduced as v1alpha1 and disabled by default. It required explicit API calls to be used. * In v6.0.x, STS graduated to v1beta1 and was enabled by default, but still requires explicit calls to the STS API for token usage. The risk is minimal, as: * The Operator does not persist the token (neither in memory nor on disk). * The Operator only uses the token for a single validation and does not reuse it for any other purpose. # Release Fix released in [v7.1.0](https://github.com/minio/operator/releases/tag/v7.1.0)

CVE-2025-32963 Affected Github.com/minio/operator Versions

1 component(s)
Fixed Versions:
7.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/minio/operator
Go
< 7.1.0
7.1.0

References

Frequently Asked Questions

What is CVE-2025-32963?
CVE-2025-32963 is a security vulnerability in Github.com/minio/operator involving Minio Operator uses Kubernetes apiserver audience for AssumeRoleWithWebIdentity STS under CWE-522: Insufficiently Protected Credentials.
Which Github.com/minio/operator versions are affected?
Affected versions include releases prior to 7.1.0 across affected packages: github.com/minio/operator.
What version fixes CVE-2025-32963?
Upgrading to 7.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/minio/operator affected?
Yes, github.com/minio/operator is affected in releases prior to 7.1.0. Upgrade your dependency to 7.1.0 or later.
What CWE is associated with CVE-2025-32963?
CVE-2025-32963 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check Go dependencies for CVE-2025-32963?
Run the dependency tree command: 'inspect dependencies for github.com/minio/operator'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7m6v-q233-q9j9",
  "modified" : "2026-01-23T17:16:26Z",
  "published" : "2025-04-21T22:51:11Z",
  "aliases" : [ "CVE-2025-32963" ],
  "summary" : "Minio Operator uses Kubernetes apiserver audience for AssumeRoleWithWebIdentity STS",
  "details" : "# Prevent token leakage / privilege escalation\n\n## MinIO Operator STS: A Quick Overview\n\nMinIO Operator STS is a native IAM Authentication for Kubernetes. MinIO Operator offers support for [Secure Tokens](https://min.io/docs/minio/linux/developers/security-token-service.html?ref=op-gh) (a.k.a. STS) which are a form of temporary access credentials for your MinIO Tenant. In essence, this allows you to control access to your MinIO tenant from your applications without having to explicitly create credentials for each application.\n\nFor an application to gain access into a MinIO Tenant, a `PolicyBinding` resource is required, granting explicit access to the applications by validating the kubernetes [Service Account](https://kubernetes.io/docs/concepts/security/service-accounts/) authorization token. \n\nThe service account token is validated as follows:\n\n1. The application calls `AssumeRoleWithWebIdentity` API MinIO Operator provides.\n2. MinIO Operator verifies the Service Account token agains the kubernetes API using the [TokenReview API](https://kubernetes.io/docs/reference/kubernetes-api/authentication-resources/token-review-v1/)\n3. MinIO Operator reviews the TokenReviewResult confirms if the token is a valid token and the user is authenticated.\n4. MinIO Operator validates the service account has `PolicyBinding` in the Tenant namespace.\n5. MinIO Operator gets the PolicyBinding\n6. MinIO Operator calls the AssumeRole API in the MinIO Tenant\n7. MinIO Operator obtains temporary credentials (STS).\n8. MinIO Operator return temporary Credentials to the requester application.\n9. The applicaiton consumes Object Storage using the temporary credentials.\n\n![STS Diagram](https://raw.githubusercontent.com/minio/operator/master/docs/images/sts-diagram.png)\n\n## Understanding Audiences in Kubernetes TokenReview\n\nIn step 2 the `TokenReview` API call attempts to authenticate a token to a known user, TokenReviewStatus is the result of the `TokenReview` request.\n\nAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. \n\nAn identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences.\n\nA client of the TokenReview API that sets the `spec.audiences` field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. \n**If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.**\n\n## Solution: Properly Issuing and Using Audience-Specific ServiceAccount Tokens\n\nThis PR ensures the Operator STS service request the Service Account JWT to belong to the audience`sts.min.io` in the TokenReviewRequest.\n\nThis PR ensures the examples and documentation provided guides in how to create Service accounts with \"disabled auto mount services tokens\", by doing this the pods where the service account is used no longer mounts the service account automatically in the path `/var/run/secrets/kubernetes.io/serviceaccount`.\n\nFor illustrative purposes, here is how you disable auto mount of service account tokens at the service account level.\n\n```yaml\napiVersion: v1\nkind: ServiceAccount\nmetadata:\n  namespace: namespace-name\n  name: service-account name\nautomountServiceAccountToken: false\n```\n\nAdditionally documentation and examples show how to request an audience-specific token with audience `sts.min.io`, by asking for an ServiceAccount Token to be audience specific.\n\nFor illustrative purposes, here is how you request an audience specific service account token in a pod:\n\n```yaml\napiVersion: batch/v1\nkind: Job\nmetadata:\n  name: job-name\n  namespace: job-namespace\nspec:\n  template:\n    spec:\n      serviceAccountName: service-account-name\n      volumes:\n        - name: sa-token\n          projected:\n            sources:\n              - serviceAccountToken:\n                  audience: \"sts.min.io\"\n                  expirationSeconds: 86400\n                  path: token\n      containers:\n        - name: mc\n...\n          volumeMounts:\n            - name: sa-token\n              mountPath: /var/run/secrets/sts.min.io/serviceaccount\n              readOnly: true\n```\n\n### How this prevent a token leakage or possible privilege escalation?.\n\nThis setup prevents privilege escalation and token leakage by combining multiple defense-in-depth mechanisms that ensure service account tokens are only usable by their intended audience, short-lived, and not exposed unnecessarily.\n\n#### Audience restriction (aud: sts.min.io)\n\n**Problem**: A ServiceAccount token is often valid for multiple audiences (e.g., the default Kubernetes API server). Without scoping, it can be replayed to other internal systems, which may unintentionally trust it.\n\n**Mitigation**: Now we enforce that tokens are explicitly created for the sts.min.io audience using the Kubernetes TokenRequest API, and the MinIO Operator:\n\nSends audiences: [\"sts.min.io\"] in the TokenReview.\n\nVerifies that the token was issued with this audience via status.audiences.\n\n**Effect**: Even if a token is stolen or misused, it will fail validation if used outside the sts.min.io STS endpoint (e.g., reused at the API server or another service).\n\n#### Token Leakage Mitigation\n\nDisabling auto-mounted service account tokens\n\n**Problem**: By default, Kubernetes mounts long-lived service account tokens into all pods at `/var/run/secrets/kubernetes.io/serviceaccount`, making them vulnerable to theft if the container is compromised.\n\n**Mitigation**:  No we guide users to set `automountServiceAccountToken: false` in their ServiceAccount definitions.\n\n**Effect**: Prevents automatic token injection into all pods, reducing the attack surface.\n\n####  Requesting short-lived, audience-specific tokens via serviceAccountToken projection\n\n**Problem**: Long-lived tokens can be reused indefinitely if leaked.\n**Mitigation**: You use projected service account tokens with: \n- audience: \"sts.min.io\"\n- A short expirationSeconds (e.g., 86400 = 24 hours, or even shorter)\n\n**Effect**: Even if the token is leaked, it is:\n\n- Only usable for sts.min.io\n- Short-lived and expires soon\n- Revocable by disabling the SA or STS access\n\n## Affected Versions and Risk Assessment\nThe issue affects MinIO Operator versions v5.0.x and above, when the STS feature was first introduced.\n\n* In v5.0.x, STS was introduced as v1alpha1 and disabled by default. It required explicit API calls to be used.\n* In v6.0.x, STS graduated to v1beta1 and was enabled by default, but still requires explicit calls to the STS API for token usage.\n\nThe risk is minimal, as:\n\n* The Operator does not persist the token (neither in memory nor on disk).\n* The Operator only uses the token for a single validation and does not reuse it for any other purpose.\n\n# Release\nFix released in [v7.1.0](https://github.com/minio/operator/releases/tag/v7.1.0)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/minio/operator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/minio/operator/security/advisories/GHSA-7m6v-q233-q9j9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32963"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/minio/operator/commit/d586294d526bf0d8e6097225114655f68b0adcc5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/minio/operator"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/minio/operator/releases/tag/v7.1.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-21T22:51:11Z",
    "nvd_published_at" : "2025-04-22T18:16:00Z"
  }
}