# CVE-2023-2727: Bypassing policies imposed by the ImagePolicyWebhook admission plugin

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.24% (percentile 69, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-qc2g-gmh6-95p4, GO-2023-1891
- **Published:** 2023-07-03T20:05:04.329Z
- **Modified:** 2026-09-10T03:50:02.663Z

## Who should check

- Projects that depend on Go package k8s.io/kubernetes (\>= 1.27.0, \< 1.27.3)
- Anyone running Kubernetes \>= v1.24.14, \<= \<=; v1.25.0 - v1.25.10; v1.26.0 - v1.26.5; v1.27.0 - v1.27.2

## Description

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 containers.

## Affected and fixed versions

- Go `k8s.io/kubernetes`: affected \>= 1.27.0, \< 1.27.3; fixed 1.27.3, 1.26.6, 1.25.11, 1.24.15 (osv)
- Kubernetes: \>= v1.24.14, \<= \<=; v1.25.0 - v1.25.10; v1.26.0 - v1.26.5; v1.27.0 - v1.27.2 (cvelist)

## Mitigation

- Upgrade k8s.io/kubernetes to one of 1.27.3, 1.26.6, 1.25.11, 1.24.15 (or later in the same release line).
- Vendor workaround: Prior to upgrading, this vulnerability can be mitigated by running validation webhooks (such as Gatekeeper and Kyverno) to enforce the same restrictions for ephemeral containers.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-2727. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-2727.md
Affected: k8s.io/kubernetes >= 1.27.0, < 1.27.3
Fixed in: 1.27.3, 1.26.6, 1.25.11, 1.24.15

Steps:
1. Search this machine and project for k8s.io/kubernetes (Go), Kubernetes: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-2727 being exploited?

There is no confirmed exploitation: CVE-2023-2727 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-2727?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-2727?

k8s.io/kubernetes \>= 1.27.0, \< 1.27.3.

### Is there a fix for CVE-2023-2727?

Yes. Fixed in 1.27.3, 1.26.6, 1.25.11, 1.24.15. Upgrade k8s.io/kubernetes to one of 1.27.3, 1.26.6, 1.25.11, 1.24.15 (or later in the same release line). Vendor workaround: Prior to upgrading, this vulnerability can be mitigated by running validation webhooks (such as Gatekeeper and Kyverno) to enforce the same restrictions for ephemeral containers.

### How do I check if I'm affected by CVE-2023-2727?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-2727>
- vendor: <https://github.com/advisories/GHSA-qc2g-gmh6-95p4>
- patch: <https://github.com/kubernetes/kubernetes/pull/118356>
- patch: <https://github.com/kubernetes/kubernetes/pull/118471>
- patch: <https://github.com/kubernetes/kubernetes/pull/118473>
- patch: <https://github.com/kubernetes/kubernetes/pull/118474>
- patch: <https://github.com/kubernetes/kubernetes/pull/118512>
- other: <https://groups.google.com/g/kubernetes-security-announce/c/vPWYJ_L84m8>
- other: <https://github.com/kubernetes/kubernetes/issues/118640>
- other: <http://www.openwall.com/lists/oss-security/2023/07/06/2>
- other: <https://security.netapp.com/advisory/ntap-20230803-0004/>
- other: <https://github.com/kubernetes/kubernetes>
- other: <https://security.netapp.com/advisory/ntap-20230803-0004>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-2727>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qc2g-gmh6-95p4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1891> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-2727> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-2727>
