CVE-2024-3177 Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- KubernetesUbuntuDebian
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.
Upgrade path
8 packages: 5 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/kubernetes(Ubuntu 22.04) | = 1.0; All versions | No fix listed | No fix yet |
| ubuntu/kubernetes(Ubuntu 24.04) | = 1.0; All versions | No fix listed | No fix yet |
| ubuntu/kubernetes(Ubuntu Pro 20.04) | = 1.0; All versions | No fix listed | No fix yet |
| debian/kubernetes(Debian 12) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 | Fixed |
| debian/kubernetes(Debian 13) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 | Fixed |
| debian/kubernetes(Debian 14) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 | Fixed |
| Kubernetes | <= 1.27.12; = 1.29.0; = v1.28.0 - v1.28.8; = v1.29.0 - v1.29.3 | after 1.27.12 | Fixed |
| Kubernetes(Go) | < 1.27.13; >= 1.28.0, < 1.28.9; >= 1.28.0, <= 1.28.8; >= 1.29.0, < 1.29.4 +1 more | 1.27.13, 1.28.9, 1.29.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Kubernetes(Go) | < 1.27.13 | 1.27.13 |
| Kubernetes(Go) | >= 1.29.0, < 1.29.4 | 1.29.4 |
| Kubernetes(Go) | >= 1.28.0, < 1.28.9 | 1.28.9 |
| Kubernetes(Go) | >= 1.29.0, <= 1.29.3 | No fix listed |
| Kubernetes(Go) | >= 1.28.0, <= 1.28.8 | No fix listed |
| debian/kubernetes(Debian:12) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 |
| debian/kubernetes(Debian:13) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 |
| debian/kubernetes(Debian:14) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 |
| Kubernetes | <= 1.27.12 | No fix listed |
| Kubernetes | = v1.28.0 - v1.28.8 | No fix listed |
| Kubernetes | = v1.29.0 - v1.29.3 | No fix listed |
| Kubernetes | = 1.29.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:Pro:20.04) | = 1.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:22.04) | = 1.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:24.04) | = 1.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- CVE-2024-3177 issue-tracking vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com vendor-advisory
- github.com product
- groups.google.com issue-tracking mailing-list
- lists.fedoraproject.org
- lists.fedoraproject.org
- pkg.go.dev
- www.openwall.com
- Debian Security Tracker CVE-2024-3177 vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking