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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | kubernetes | 1.20.5+really1.20.2-1 | DEBIAN-CVE-2024-3177 |
| Debian:13 | kubernetes | 1.20.5+really1.20.2-1 | DEBIAN-CVE-2024-3177 |
| Debian:14 | kubernetes | 1.20.5+really1.20.2-1 | DEBIAN-CVE-2024-3177 |
| Go | k8s.io/kubernetes | 1.27.13, 1.28.9, 1.29.4 | GO-2024-2746 |
| Go | k8s.io/kubernetes | 1.27.13 | GHSA-pxhw-596r-rwq5 |
| Go | k8s.io/kubernetes | 1.29.4 | GHSA-pxhw-596r-rwq5 |
| Go | k8s.io/kubernetes | 1.28.9 | GHSA-pxhw-596r-rwq5 |
| Ubuntu:22.04:LTS | kubernetes | no fix listed | UBUNTU-CVE-2024-3177 |
| Ubuntu:24.04:LTS | kubernetes | no fix listed | UBUNTU-CVE-2024-3177 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://groups.google.com/g/kubernetes-security-announce/c/JxjHf7fkVd8/m/oVCzypyOAQAJ mailing-list
- https://github.com/kubernetes/kubernetes/issues/124336 issue-tracking
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC/ x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT/ x_transferred
- http://www.openwall.com/lists/oss-security/2024/04/16/4 x_transferred