CVE-2024-3177

LOW

Kubernetes < 1.27.13, 1.28.0-1.28.8, 1.29.0-1.29.3 - Policy Bypass via envFrom Field

Title source: llm
STIX 2.1

Exploitation 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)

nomisec WORKING POC
by Cgv-Dev · poc
https://github.com/Cgv-Dev/Metasploit-Module-TFM

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.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: Kubernetes v1.27.2 and other vulnerable versions
Auth required
Prerequisites: Valid Kubernetes API token with necessary permissions · Access to the Kubernetes API server · Knowledge of the target namespace and secret name
devstral-2 · analyzed Feb 18, 2026 Full analysis →

Scores

CVSS v3 2.7
EPSS 0.0842
EPSS Percentile 92.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-20
Status published
Products (4)
k8s.io/kubernetes 0 - 1.27.13Go
Kubernetes/Kubernetes < 1.27.12
Kubernetes/Kubernetes v1.28.0 - v1.28.8
Kubernetes/Kubernetes v1.29.0 - v1.29.3
Published Apr 22, 2024
Tracked Since Feb 18, 2026