CVE-2023-2728
MEDIUMkubernetes <1.24.14, 1.27.0-1.27.2 - Policy Bypass via Ephemeral Container Mountable Secrets
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2023-2728. PoCs published by Cgv-Dev.
AI-analyzed exploit summary This repository contains a functional Metasploit module that exploits CVE-2024-3177 and CVE-2023-2728 in Kubernetes to bypass the mountable secrets policy imposed by the ServiceAccount admission plugin. The module creates a Pod with a specified container type (normal, init, or ephemeral) to expose secrets as environment variables.
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.
Exploits (1)
This repository contains a functional Metasploit module that exploits CVE-2024-3177 and CVE-2023-2728 in Kubernetes to bypass the mountable secrets policy imposed by the ServiceAccount admission plugin. The module creates a Pod with a specified container type (normal, init, or ephemeral) to expose secrets as environment variables.
References (4)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N