{"id":"CVE-2024-3177","published":"2024-04-22T23:00:39Z","modified":"2024-09-10T20:48:09Z","title":"Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin","vendor":"Kubernetes","product":"Kubernetes","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02224,"percentile":0.83131,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/JxjHf7fkVd8/m/oVCzypyOAQAJ","tags":["mailing-list"]},{"url":"https://github.com/kubernetes/kubernetes/issues/124336","tags":["issue-tracking"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WL54MTLGMTBZZO5PYGEGEBERTMADC4WC/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPT/","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/16/4","tags":["x_transferred"]}],"priority":{"score":23.5,"factors":[{"name":"EPSS percentile","points":16.63},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":1.89}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-09-05","earliestUrl":"https://github.com/Cgv-Dev/Metasploit-Module-TFM","repos":[{"name":"Cgv-Dev/Metasploit-Module-TFM","url":"https://github.com/Cgv-Dev/Metasploit-Module-TFM","stars":0,"created":"2024-09-05"}]},"first":{"date":"2024-09-05","source":"PoC-in-GitHub","url":"https://github.com/Cgv-Dev/Metasploit-Module-TFM"},"provenance":"source"},"vendorSlug":"kubernetes","affectedVersions":[{"vendor":"Kubernetes","product":"Kubernetes","versions":["<= 1.27.12","v1.28.0 - v1.28.8","v1.29.0 - v1.29.3"]}],"solutions":{"items":["To mitigate this vulnerability, upgrade Kubernetes: https://kubernetes.io/docs/tasks/administer-cluster/cluster-upgrade/"],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-554","name":"Functionality Bypass"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-23T00:12:31.706727Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"k8s.io/kubernetes","vulnerableRanges":["<1.27.13",">=1.29.0, <1.29.4",">=1.28.0, <1.28.9"],"patched":["1.27.13","1.29.4","1.28.9"],"from":["GHSA-pxhw-596r-rwq5","GO-2024-2746"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-1273","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-3676","published":"2023-10-31","fixed":"1.28.1","kev":false},{"cve":"CVE-2023-3955","published":"2023-10-31","fixed":"1.28.1","kev":false},{"cve":"CVE-2023-5528","published":"2023-11-14","fixed":"1.28.4","kev":false,"link":{"from":"CVE-2023-5528","to":"CVE-2024-3177","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.27.8","toFixed":"1.27.13","daysApart":160}]}},{"cve":"CVE-2024-3177","published":"2024-04-22","fixed":"1.29.4","kev":false},{"cve":"CVE-2024-10220","published":"2024-11-22","fixed":"1.30.3","kev":false,"link":{"from":"CVE-2024-3177","to":"CVE-2024-10220","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.28.9","toFixed":"1.28.12","daysApart":214}]}},{"cve":"CVE-2024-5321","published":"2024-07-18","fixed":"1.30.3","kev":false,"link":{"from":"CVE-2024-3177","to":"CVE-2024-5321","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.27.13","toFixed":"1.27.16","daysApart":87}]}},{"cve":"CVE-2024-9042","published":"2025-03-13","fixed":"1.32.1","kev":false}],"package":"Go:k8s.io/kubernetes"}}