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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | k3s | 1.27.3.1-r0 | ALPINE-CVE-2023-2728 |
| Alpine:v3.21 | k3s | 1.27.3.1-r0 | ALPINE-CVE-2023-2728 |
| Alpine:v3.22 | k3s | 1.27.3.1-r0 | ALPINE-CVE-2023-2728 |
| Alpine:v3.23 | k3s | 1.27.3.1-r0 | ALPINE-CVE-2023-2728 |
| Alpine:v3.24 | k3s | 1.27.3.1-r0 | ALPINE-CVE-2023-2728 |
| Debian:12 | kubernetes | 1.20.5+really1.20.2-1 | DEBIAN-CVE-2023-2728 |
| Debian:13 | kubernetes | 1.20.5+really1.20.2-1 | DEBIAN-CVE-2023-2728 |
| Debian:14 | kubernetes | 1.20.5+really1.20.2-1 | DEBIAN-CVE-2023-2728 |
| Go | k8s.io/kubernetes | 1.25.11 | GHSA-cgcv-5272-97pr |
| Go | k8s.io/kubernetes | 1.27.3 | GHSA-cgcv-5272-97pr |
| Go | k8s.io/kubernetes | 1.26.6 | GHSA-cgcv-5272-97pr |
| Go | k8s.io/kubernetes | 1.24.15 | GHSA-cgcv-5272-97pr |
| Go | k8s.io/kubernetes | 1.24.15, 1.25.11, 1.26.6, 1.27.3 | GO-2023-1892 |
| Ubuntu:22.04:LTS | kubernetes | no fix listed | UBUNTU-CVE-2023-2728 |
| Ubuntu:24.04:LTS | kubernetes | no fix listed | UBUNTU-CVE-2023-2728 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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