K8s ServiceAccount Admission bypasses mountablesecrets policy in containers
CVE-2023-2728 Published on July 3, 2023
Bypassing enforce mountable secrets policy imposed by the ServiceAccount admission plugin
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 accounts 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.
Vulnerability Analysis
CVE-2023-2728 is exploitable with network access, and requires user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Weakness Type
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Products Associated with CVE-2023-2728
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-2728 are published in Kubernetes:
Affected Versions
Kubernetes:- Version v1.24.14, <= <= is affected.
- Version v1.25.0 - v1.25.10 is affected.
- Version v1.26.0 - v1.26.5 is affected.
- Version v1.27.0 - v1.27.2 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.