Access Restriction Bypass Affecting github.com/kubernetes/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. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.11% (46th 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 Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMKUBERNETESKUBERNETESPLUGINPKGADMISSIONSERVICEACCOUNT-5710378
  • published15 Jun 2023
  • disclosed15 Jun 2023
  • creditUnknown

Introduced: 15 Jun 2023

CVE-2023-2728  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade github.com/kubernetes/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