Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 2 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kubernetes | Kubernetes | up to 1.27.12; v1.28.0 - v1.28.8; v1.29.0 - v1.29.3 | — | No fix listed | CNA |
| — | k8s.io/kubernetes (Go) | before 1.27.13 | 1.27.13 | Patch available | GHSA-pxhw-596r-rwq5 |
| — | k8s.io/kubernetes (Go) | 1.29.0 to before 1.29.4 | 1.29.4 | Patch available | GHSA-pxhw-596r-rwq5 |
| — | k8s.io/kubernetes (Go) | 1.28.0 to before 1.28.9 | 1.28.9 | Patch available | GHSA-pxhw-596r-rwq5 |
- Kubernetes VendorKubernetes Affected up to 1.27.12; v1.28.0 - v1.28.8; v1.29.0 - v1.29.3 Fixed in — No fix listed CNA
- k8s.io/kubernetes (Go) Vendor— Affected before 1.27.13 Fixed in 1.27.13 Patch available GHSA-pxhw-596r-rwq5
- k8s.io/kubernetes (Go) Vendor— Affected 1.29.0 to before 1.29.4 Fixed in 1.29.4 Patch available GHSA-pxhw-596r-rwq5
- k8s.io/kubernetes (Go) Vendor— Affected 1.28.0 to before 1.28.9 Fixed in 1.28.9 Patch available GHSA-pxhw-596r-rwq5
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kubernetes:kubernetes:-:*:*:*:*:*:*:* | not specified by CISA-ADP | — | Kubernetes |
- cpe:2.3:a:kubernetes:kubernetes:-:*:*:*:*:*:*:* Versions not specified by CISA-ADP — ·Kubernetes
Remediation
- Fix · GHSA-pxhw-596r-rwq5 k8s.io/kubernetes (Go) Fixed in 1.27.13 Advisory →
- Fix · GHSA-pxhw-596r-rwq5 k8s.io/kubernetes (Go) Fixed in 1.29.4 Advisory →
- Fix · GHSA-pxhw-596r-rwq5 k8s.io/kubernetes (Go) Fixed in 1.28.9 Advisory →
Red Hat 2 advisories
- RHSA-2024:0043 Released 2024-06-27 · Red Hat rating ImportantRed Hat build of MicroShift 4.16.0 security update
- Red Hat OpenShift Container Platform 4.16 microshift-4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9, microshift-greenboot-4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9, microshift-multus-4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9 +6
- RHSA-2024:2054 Released 2024-05-02 · Red Hat rating ModerateOpenShift Container Platform 4.14.23 security update
- Red Hat OpenShift Container Platform 4.14 openshift-4.14.0-202404231437.p0.g401bb48.assembly.stream.el8, openshift-4.14.0-202404231437.p0.g401bb48.assembly.stream.el9, openshift-hyperkube-4.14.0-202404231437.p0.g401bb48.assembly.stream.el8 +5
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4.14 | Fixed | RHSA-2024:2054 |
| Red Hat OpenShift Container Platform 4.16 | Fixed | RHSA-2024:0043 |
Not affected: 1 product
- Red Hat OpenShift Container Platform 4.14
Timeline
- 2026-10-02 Threatist record created from CVE-2024-3177
- 2026-10-03 Alias added: GHSA-pxhw-596r-rwq5
References
Advisory 2
Other 10
- https://groups.google.com/g/kubernetes-security-announce/c/JxjHf7fkVd8/m/oVCzypyOAQAJ
- https://github.com/kubernetes/kubernetes/issues/124336
- https://github.com/kubernetes/kubernetes/commit/7c861b1ecad97e1ab9332c970c9294a72065111a
- https://github.com/kubernetes/kubernetes/commit/a619ca3fd3ee3c222d9df784622020de398076d2
- https://github.com/kubernetes/kubernetes/commit/f9fb6cf52a769a599a45e700375115c2ecc86e9b
- https://github.com/kubernetes/kubernetes
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC
- https://pkg.go.dev/vuln/GO-2024-2746
- http://www.openwall.com/lists/oss-security/2024/04/16/4
More Kubernetes vulnerabilities
- TI-2025-01719 ingress-nginx admission controller RCE escalation CVSS 3.1CRITICAL 9.8
- TI-2018-16130 Improper privilege management in Kubernetes CVSS 3.0CRITICAL 9.8
- TI-2025-00932 ingress-nginx controller - configuration injection via unsanitized mirror annotations CVSS 3.1HIGH 8.8
- TI-2019-08418 Kubernetes kubelet exposes /debug/pprof info on healthz port CVSS 3.1HIGH 8.2
- TI-2026-02839 ingress-nginx rewrite-target nginx configuration injection CVSS 3.1HIGH 8.8
- TI-2025-18233 ingress-nginx controller - configuration injection via unsanitized auth-url annotation CVSS 3.1HIGH 8.8
Sources
- CVE-2024-3177 · CVE Program
- CVE-2024-3177 · NVD
- FIRST EPSS
- GHSA-pxhw-596r-rwq5 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-3177 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences