CVE-2024-3177
Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin
Also known as GHSA-pxhw-596r-rwq5, GO-2024-2746
Mitigation
- Upgrade k8s.io/kubernetes to one of 1.27.13, 1.29.4, 1.28.9 (or later in the same release line).
Who should check
- Projects that depend on Go package k8s.io/kubernetes (< 1.27.13)
- Anyone running Kubernetes <= 1.27.12; v1.28.0 - v1.28.8; v1.29.0 - v1.29.3
Vulnerability facts
- Affected
- k8s.io/kubernetes < 1.27.13
- Fixed in
- 1.27.13, 1.29.4, 1.28.9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 2.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 2.17% chance of exploitation in 30 days (percentile 83, 2026-11-26)
- CWE
- CWE-20
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go k8s.io/kubernetes | < 1.27.13 | 1.27.13, 1.29.4, 1.28.9 | osv |
| Kubernetes | <= 1.27.12; v1.28.0 - v1.28.8; v1.29.0 - v1.29.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-3177. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-3177.md Affected: k8s.io/kubernetes < 1.27.13 Fixed in: 1.27.13, 1.29.4, 1.28.9 Steps: 1. Search this machine and project for k8s.io/kubernetes (Go), Kubernetes: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://groups.google.com/g/kubernetes-security-announce/c/JxjHf7fkVd8/m/oVCzypyOAQAJ
- https://github.com/kubernetes/kubernetes/issues/124336
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT/
- http://www.openwall.com/lists/oss-security/2024/04/16/4
- https://github.com/kubernetes/kubernetes
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC
- https://pkg.go.dev/vuln/GO-2024-2746
FAQ
Is CVE-2024-3177 being exploited?
There is no confirmed exploitation: CVE-2024-3177 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.17% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-3177?
Low: CVSS 2.7 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-3177?
k8s.io/kubernetes < 1.27.13.
Is there a fix for CVE-2024-3177?
Yes. Fixed in 1.27.13, 1.29.4, 1.28.9. Upgrade k8s.io/kubernetes to one of 1.27.13, 1.29.4, 1.28.9 (or later in the same release line).
How do I check if I'm affected by CVE-2024-3177?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.