CVE-2024-3177 json
Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin
published 2y ago modified last mo. also EUVD-2024-1273 , GHSA-pxhw-596r-rwq5 , GO-2024-2746
- cvss
- 2.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
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.
Patch / fix
- go k8s.io/kubernetes 1.27.13, 1.28.9, 1.29.4
- kubernetes kubernetes 1.27.13, 1.28.9, 1.29.4
- kubernetes Debian 14, Debian 13, Debian 12 1.20.5+really1.20.2-1
debian advisories DEBIAN-CVE-2024-3177
- skopeo openshift 4.14 2:1.11.3-0.1.rhaos4.14.el8
- skopeo openshift 4.14 2:1.11.3-0.1.rhaos4.14.el9
- openshift openshift 4.14 4.14.0-202404231437.p0.g401bb48.assembly.stream.el8
- openshift openshift 4.14 4.14.0-202404231437.p0.g401bb48.assembly.stream.el9
- skopeo-tests openshift 4.14 2:1.11.3-0.1.rhaos4.14.el8
- skopeo-tests openshift 4.14 2:1.11.3-0.1.rhaos4.14.el9
- openshift-hyperkube openshift 4.14 4.14.0-202404231437.p0.g401bb48.assembly.stream.el8
- openshift-hyperkube openshift 4.14 4.14.0-202404231437.p0.g401bb48.assembly.stream.el9
red hat advisories RHSA-2024:2054RHSA-2024:0043
- kubernetes1.23 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +5 more 1.23.17-150300.7.12.1
- kubernetes1.24 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 1.24.17-150300.7.6.1
- kubernetes1.24 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 1.24.17-150400.9.16.1
- kubernetes1.23 SLE Module for Containers 15 SP5, openSUSE Leap 15.5 1.23.17-150500.3.12.1
- kubernetes1.24 SLE Module for Containers 15 SP5, openSUSE Leap 15.5 1.24.17-150500.3.16.1
suse advisories SUSE-SU-2025:02423-2SUSE-SU-2024:3343-1SUSE-SU-2024:3341-1SUSE-SU-2024:1404-1SUSE-SU-2024:1403-1
Is CVE-2024-3177 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-3177 updated cvss 2.7
kubernetes: kube-apiserver: bypassing mountable secrets policy imposed by the ServiceAccount admission plugin
-
Red Hat OpenShift Container Platform 3.11 atomic-openshift, atomic-openshift-pod, atomic-openshift-node, atomic-openshift-tests, atomic-openshift-master, atomic-openshift-clients, +7 moreaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-tests, openshift4/ose-hyperkube-rhel9, openshift4/ose-cluster-kube-apiserver-operator, ose-installer-kube-apiserver-artifacts-containeraffected: no fix available “Fix deferred”
-
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, openshift-hyperkube 4.14.0-202404231437.p0.g401bb48.assembly.stream.el9fixed: vendor fix RHSA-2024:2054
-
Red Hat OpenShift Container Platform 4.16 microshift 4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9, microshift-olm 4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9, microshift-multus 4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9, microshift-selinux 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-networking 4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9, +3 morefixed: vendor fix RHSA-2024:0043
-
Red Hat OpenShift Container Platform 4.14 rpm-ostree 2023.3-2.el9_2, perf 5.14.0-284.64.1.el9_2, rtla 5.14.0-284.64.1.el9_2, bpftool 7.0.0-284.64.1.el9_2, kernel 5.14.0-284.64.1.el9_2, rpm-ostree-libs 2023.3-2.el9_2, +74 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | k8s.io/kubernetes | <1.27.13 >=1.29.0, <1.29.4 >=1.28.0, <1.28.9 |
1.27.13 1.29.4 1.28.9 |
Affected products
- Kubernetes Kubernetes
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
github.com
/kubernetes/kubernetes/commit/7c861b1ecad97e1ab9332c970c9294a72065111a
web, patch
-
github.com
/kubernetes/kubernetes/commit/a619ca3fd3ee3c222d9df784622020de398076d2
web
-
github.com
/kubernetes/kubernetes/commit/f9fb6cf52a769a599a45e700375115c2ecc86e9b
web
-
groups.google.com
/g/kubernetes-security-announce/c/JxjHf7fkVd8/m/oVCzypyOAQAJ
mailing-list, web
-
github.com
/kubernetes/kubernetes/issues/124336
issue-tracking, web
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT/
-
openwall.com
/lists/oss-security/2024/04/16/4
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-3177
advisory
-
github.com
/advisories/GHSA-pxhw-596r-rwq5
advisory
-
github.com
/kubernetes/kubernetes
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC
web
-
pkg.go.dev
/vuln/GO-2024-2746
web
Sources
- CVE List CVE-2024-3177
- GitHub Advisory GHSA-pxhw-596r-rwq5
- NVD CVE-2024-3177
- OSV GO-2024-2746
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.