{"id":"CVE-2023-2728","published":"2023-07-03T20:06:11Z","modified":"2025-02-13T16:45:20Z","title":"Bypassing enforce mountable secrets policy imposed by the ServiceAccount admission plugin","vendor":"Kubernetes","product":"Kubernetes","tier":"tail","description":{"text":"Users may be able to launch containers that bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using ephemeral containers. 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 ephemeral containers.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02157,"percentile":0.82621,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://groups.google.com/g/kubernetes-security-announce/c/vPWYJ_L84m8","tags":["mailing-list"]},{"url":"https://github.com/kubernetes/kubernetes/issues/118640","tags":["issue-tracking"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/06/3","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230803-0004/","tags":[]}],"priority":{"score":26.1,"factors":[{"name":"EPSS percentile","points":16.52},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"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":[">= v1.24.14, <= <=","v1.25.0 - v1.25.10","v1.26.0 - v1.26.5","v1.27.0 - v1.27.2"]}],"solutions":{"items":["To mitigate this vulnerability, upgrade Kubernetes: https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#upgrading-a-cluster https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#upgrading-a-cluster"],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-554","name":"Functionality Bypass"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-25T17:02:56.391082Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"k8s.io/kubernetes","vulnerableRanges":[">=1.27.0, <1.27.3",">=1.26.0, <1.26.6",">=1.25.0, <1.25.11","<1.24.15"],"patched":["1.27.3","1.26.6","1.25.11","1.24.15"],"from":["GHSA-cgcv-5272-97pr","GO-2023-1892"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-2032","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-0793","published":"2024-11-17","fixed":"1.27.0-alpha.1","kev":false},{"cve":"CVE-2023-2431","published":"2023-06-16","fixed":"1.27.2","kev":false,"link":{"from":"CVE-2023-2431","to":"CVE-2023-2728","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.27.2","toFixed":"1.27.3","daysApart":17}]}},{"cve":"CVE-2023-2727","published":"2023-07-03","fixed":"1.27.3","kev":false},{"cve":"CVE-2023-2728","published":"2023-07-03","fixed":"1.27.3","kev":false},{"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}],"package":"Go:k8s.io/kubernetes"}}