Access Restriction Bypass Affecting k8s.io/kubernetes/plugin/pkg/admission/serviceaccount package, versions <1.24.15 >=1.25.0 <1.25.11 >=1.26.0 <1.26.6 >=1.27.0 <1.27.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.11% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-K8SIOKUBERNETESPLUGINPKGADMISSIONSERVICEACCOUNT-5710379
  • published 15 Jun 2023
  • disclosed 15 Jun 2023
  • credit Unknown

How to fix?

Upgrade k8s.io/kubernetes/plugin/pkg/admission/serviceaccount to version 1.24.15, 1.25.11, 1.26.6, 1.27.3 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass where users may be able to launch containers that bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using ephemeral containers.

Notes:

Clusters are impacted by this vulnerability if all of the following are true:

  1. The ServiceAccount admission plugin is used. Most clusters should have this on by default as recommended in https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#serviceaccount

  2. A service account uses the kubernetes.io/enforce-mountable-secrets annotation. This annotation is not added by default.

  3. Pods use ephemeral containers.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

6.5 medium
Expand this section

SUSE

6.5 medium
Expand this section

Red Hat

6.5 medium