CVE-2024-3177
LOWKubernetes < 1.27.13, 1.28.0-1.28.8, 1.29.0-1.29.3 - Policy Bypass via envFrom Field
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2024-3177. 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
A security issue was discovered in Kubernetes where users may be able to launch containers that bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using containers, init containers, and ephemeral containers with the envFrom field populated. 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 containers, init containers, and ephemeral containers with the envFrom field populated.
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 (5)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N