Skip to main content
← All vulnerabilities
CVE-2024-3177GHSA-PXHW-596R-RWQ5GO-2024-2746

Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.27.13, 1.29.4, 1.28.9
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Kubernetes Kubernetes

    through 1.27.12

  • k8s.io/kubernetesGo

    fixed in 1.27.13

  • k8s.io/kubernetesGo

    From 1.29.0 · fixed in 1.29.4

  • k8s.io/kubernetesGo

    From 1.28.0 · fixed in 1.28.9

  • k8s.io/kubernetesGo

    fixed in 1.27.13; From 1.28.0 · fixed in 1.28.9; From 1.29.0 · fixed in 1.29.4

References 3

groups.google.com

GitHub · kubernetes/kubernetes

GitHub · Cgv-Dev/Metasploit-Module-TFM