Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 6 Jul 2023 14:27:48 -0700
From: Rita Zhang <>
Subject: [kubernetes] CVE-2023-2727: Bypassing policies imposed by the
 ImagePolicyWebhook admission plugin

Hello Kubernetes Community,

A security issue was discovered in Kubernetes where users may be able to
launch containers using images that are restricted by ImagePolicyWebhook
when using ephemeral containers. Kubernetes clusters are only affected if
the ImagePolicyWebhook admission plugin is used together with ephemeral

This issue has been rated *Medium* (
and assigned CVE-2023-2727

*Am I vulnerable?*
Clusters are impacted by this vulnerability if all of the following are

   1. The ImagePolicyWebhook admission plugin is used to restrict use of
   certain images
   2. Pods are using ephemeral containers.

*Affected Versions*

   - kube-apiserver v1.27.0 - v1.27.2
   - kube-apiserver v1.26.0 - v1.26.5
   - kube-apiserver v1.25.0 - v1.25.10
   - kube-apiserver <= v1.24.14

*How do I mitigate this vulnerability?*
This issue can be mitigated by applying the patch provided for the
kube-apiserver component. This patch prevents ephemeral containers from
using an image that is restricted by ImagePolicyWebhook.

Note: Validation webhooks (such as Gatekeeper
and Kyverno
can also be used to enforce the same restrictions.

*Fixed Versions*

   - kube-apiserver v1.27.3
   - kube-apiserver v1.26.6
   - kube-apiserver v1.25.11
   - kube-apiserver v1.24.15

These releases have been published today, June 14th, 2023.

Pod update requests using an ephemeral container with an image that should
have been restricted by an ImagePolicyWebhook will be captured in API audit
logs. You can also use `kubectl get pods` to find active pods with
ephemeral containers running an image that should have been restricted in
your cluster with this issue.

*Additional Details*
See the GitHub issue for more details:

Thank You,
Rita Zhang on behalf of the Kubernetes Security Response Committee

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.