Vulnerability · Published Apr 22, 2024 · Assigned by kubernetes

CVE-2024-3177Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin

Low 2.7

In plain English

A low-severity improper input validation in Kubernetes from Kubernetes. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.7Low
Exploit odds (30 days)2.2%top 17.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2024-3177
Debian:13kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2024-3177
Debian:14kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2024-3177
Gok8s.io/kubernetes1.27.13, 1.28.9, 1.29.4GO-2024-2746
Gok8s.io/kubernetes1.27.13GHSA-pxhw-596r-rwq5
Gok8s.io/kubernetes1.29.4GHSA-pxhw-596r-rwq5
Gok8s.io/kubernetes1.28.9GHSA-pxhw-596r-rwq5
Ubuntu:22.04:LTSkubernetesno fix listedUBUNTU-CVE-2024-3177
Ubuntu:24.04:LTSkubernetesno fix listedUBUNTU-CVE-2024-3177

Affected products (as reported)

VendorProductVersions
Kubernetes Kubernetes 0 – through 1.27.12v1.28.0 - v1.28.8v1.29.0 - v1.29.3

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

References