Vulnerability · Published Jul 3, 2023 · Assigned by kubernetes

CVE-2023-2728Bypassing enforce mountable secrets policy imposed by the ServiceAccount admission plugin

Medium 6.5

In plain English

A medium-severity improper input validation in Kubernetes from Kubernetes. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)2.2%top 17.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Users may be able to launch containers that bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using ephemeral containers. The policy ensures pods running with a service account may only reference secrets specified in the service account’s secrets field. Kubernetes clusters are only affected if the ServiceAccount admission plugin and the `kubernetes.io/enforce-mountable-secrets` annotation are used together with ephemeral containers.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20k3s1.27.3.1-r0ALPINE-CVE-2023-2728
Alpine:v3.21k3s1.27.3.1-r0ALPINE-CVE-2023-2728
Alpine:v3.22k3s1.27.3.1-r0ALPINE-CVE-2023-2728
Alpine:v3.23k3s1.27.3.1-r0ALPINE-CVE-2023-2728
Alpine:v3.24k3s1.27.3.1-r0ALPINE-CVE-2023-2728
Debian:12kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2023-2728
Debian:13kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2023-2728
Debian:14kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2023-2728
Gok8s.io/kubernetes1.25.11GHSA-cgcv-5272-97pr
Gok8s.io/kubernetes1.27.3GHSA-cgcv-5272-97pr
Gok8s.io/kubernetes1.26.6GHSA-cgcv-5272-97pr
Gok8s.io/kubernetes1.24.15GHSA-cgcv-5272-97pr
Gok8s.io/kubernetes1.24.15, 1.25.11, 1.26.6, 1.27.3GO-2023-1892
Ubuntu:22.04:LTSkubernetesno fix listedUBUNTU-CVE-2023-2728
Ubuntu:24.04:LTSkubernetesno fix listedUBUNTU-CVE-2023-2728

Affected products (as reported)

VendorProductVersions
Kubernetes Kubernetes v1.24.14 – through <=v1.25.0 - v1.25.10v1.26.0 - v1.26.5v1.27.0 - v1.27.2

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

References