cve.bz

CVE-2023-2728 kubernetes kubernetes: Improper Input Validation

6.5 mediumEPSS 2.2%Fix available

Medium (6.5) in kubernetes kubernetes. EPSS 2.2% estimated probability of exploitation activity in the next 30 days. Fixed in k8s.io/kubernetes 1.24.15, 1.25.11, 1.26.6.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
EPSS
2.2% (unchanged from 2.2% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-11-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-2728 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-2728?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-2728?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-2728 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kubernetesfrom v1.24.14 through <=
Kubernetesv1.25.0 - v1.25.10
Kubernetesv1.26.0 - v1.26.5
Kubernetesv1.27.0 - v1.27.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cgcv-5272-97prGok8s.io/kubernetes>=1.27.0 <1.27.31.27.3
GHSA-cgcv-5272-97prGok8s.io/kubernetes>=1.26.0 <1.26.61.26.6
GHSA-cgcv-5272-97prGok8s.io/kubernetes>=1.25.0 <1.25.111.25.11
GHSA-cgcv-5272-97prGok8s.io/kubernetes<1.24.151.24.15
GO-2023-1892Gok8s.io/kubernetes<1.24.15
>=1.25.0 <1.25.11
>=1.26.0 <1.26.6
>=1.27.0 <1.27.3
1.24.15, 1.25.11, 1.26.6, 1.27.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2023-2728
Red Hatopenshift:4.14::el8buildah, buildah-tests, buildah-debuginfo and 2 more1:1.29.1-10.1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8butane, butane-debuginfo, butane-debugsource and 1 more0:0.19.0-1.1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8conmon, conmon-debuginfo, conmon-debugsource3:2.1.7-3.1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8container-selinux3:2.221.0-1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8containernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource0:1.0.1-11.1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8containers-common2:1-51.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8coreos-installer, coreos-installer-dracut, coreos-installer-bootinfra and 3 more0:0.17.0-1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.27.1-8.1.rhaos4.14.git3fecb83.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8cri-tools, cri-tools-debuginfo, cri-tools-debugsource0:1.27.0-2.1.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8crun, crun-debuginfo, crun-debugsource0:1.9.2-1.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8crun-wasm0:0.0-3.rhaos4.14.el8RHSA-2023:5009
Red Hatopenshift:4.14::el8haproxy, haproxy26, haproxy-debugsource and 1 more0:2.6.13-1.rhaos4.14.el8RHSA-2023:5009
90 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morekubernetes1.181.18.10-150200.5.10.1SUSE-SU-2023:2541-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morekubernetes1.231.23.17-150300.7.9.1SUSE-SU-2023:2542-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morekubernetes1.241.24.17-150300.7.6.1SUSE-SU-2024:3343-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morekubernetes1.241.24.17-150400.9.16.1SUSE-SU-2024:3341-1
SUSELinux Enterprise Module for Containers 15 SP4kubernetes1.241.24.16-150400.9.8.2SUSE-SU-2023:3260-1
SUSELinux Enterprise Module for Containers 15 SP5kubernetes1.231.23.17-150500.3.3.1SUSE-SU-2023:2543-1
SUSELinux Enterprise Module for Containers 15 SP5kubernetes1.241.24.13-150500.3.3.1SUSE-SU-2023:2544-1
openSUSELeap 15.4kubernetes1.241.24.16-150400.9.8.2SUSE-SU-2023:3260-1
openSUSELeap 15.4, Leap 15.5kubernetes1.181.18.10-150200.5.10.1SUSE-SU-2023:2541-1
openSUSELeap 15.5kubernetes1.231.23.17-150500.3.3.1SUSE-SU-2023:2543-1
openSUSELeap 15.5kubernetes1.241.24.13-150500.3.3.1SUSE-SU-2023:2544-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250807T150727-1.1openSUSE-SU-2025:15424-1
openSUSETumbleweedkubernetes1.231.23.17-4.1openSUSE-SU-2024:13003-1
openSUSETumbleweedkubernetes1.241.24.15-2.1openSUSE-SU-2024:13011-1
Alpinev3.18, v3.19, v3.20 and 4 morek3s1.27.3.1-r0ALPINE-CVE-2023-2728

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

This issue can be mitigated by applying the patch provided for the kube-apiserver component. The patch prevents ephemeral containers from bypassing the mountable secrets policy enforced by the ServiceAccount admission plugin.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.14buildah-1:1.29.1-10.1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14butane-0:0.19.0-1.1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14catch-0:3.3.2-1.el9Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14conmon-3:2.1.7-3.1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14containernetworking-plugins-0:1.0.1-11.1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14containers-common-2:1-51.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14container-selinux-3:2.221.0-1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14coreos-installer-0:0.17.0-1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14cri-o-0:1.27.1-8.1.rhaos4.14.git3fecb83.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14cri-tools-0:1.27.0-2.1.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14crun-0:1.9.2-1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14crun-wasm-0:0.0-3.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14fmt-0:9.1.0-1.el9Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14golang-github-prometheus-promu-0:0.15.0-15.1.gitd5383c5.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14google-benchmark-0:1.8.2-1.el9Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14gtest-0:1.13.0-1.el9Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14haproxy-0:2.6.13-1.rhaos4.14.el8Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 4.14ignition-0:2.16.2-1.1.rhaos4.14.el9Fixed 2023-10-31RHSA-2023:5009
Red Hat OpenShift Container Platform 3.11atomic-openshiftOut of support scope
Red Hat OpenShift Container Platform 4openshift4/ose-testsNot affected
69 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-2728.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON