CVE-2024-48921
JSON

8.7high

Kyverno's PolicyException objects can be created in any namespace by default

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-qjvc-p88j-j9rmBIT-KYVERNO-2024-48921GO-2024-3230

Description

Kyverno is a policy engine designed for Kubernetes. A kyverno ClusterPolicy, ie. "disallow-privileged-containers," can be overridden by the creation of a PolicyException in a random namespace. By design, PolicyExceptions are consumed from any namespace. Administrators may not recognize that this allows users with privileges to non-kyverno namespaces to create exceptions. This vulnerability is fixed in 1.13.0.

Affected

Product or packageVersionsReported by
kyverno kyverno< 1.13.0, before 1.13.0CVE List
github.com/kyverno/kyverno (Go)before 1.13.0GitHub Advisory Database, Go Vulnerability Database
nirmata kyvernobefore 1.13.0NVD
kyverno (Bitnami)before 1.13.0Bitnami Vulnerability Database

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD2.7low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-285CWE-863

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Kyverno is a policy engine designed for Kubernetes. A kyverno ClusterPolicy, ie. "disallow-privileged-containers," can be overridden by the creation of a PolicyException in a random namespace. By design, PolicyExceptions are consumed from any namespace. Administrators may not recognize that this allows users with privileges to non-kyverno namespaces to create exceptions. This vulnerability is fixed in 1.13.0.

GitHub Advisory Database
Summary

A kyverno ClusterPolicy, ie. "disallow-privileged-containers," can be overridden by the creation of a PolicyException in a random namespace.

Details

By design, PolicyExceptions are consumed from any namespace. Administrators may not recognize that this allows users with privileges to non-kyverno namespaces to create exceptions.

PoC
  1. Administrator creates "disallow-privileged-containers" ClusterPolicy that applies to resources in the namespace "ubuntu-restricted"
  2. Cluster user creates a PolicyException object for "disallow-privileged-containers" in namespace "ubuntu-restricted"
  3. Cluster user creates a pod with a privileged container in "ubuntu-restricted"
  4. Cluster user escalates to root on the node from the privileged container
Impact

Administrators attempting to enforce cluster security through kyverno policies, but that allow less privileged users to create resources

Go Vulnerability Database

Kyverno's PolicyException objects can be created in any namespace by default in github.com/kyverno/kyverno

NVD (es)

Kyverno es un motor de políticas diseñado para Kubernetes. Una ClusterPolicy de Kyverno, es decir, "disallow-privileged-containers", se puede anular mediante la creación de una PolicyException en un espacio de nombres aleatorio. Por diseño, las PolicyExceptions se consumen desde cualquier espacio de nombres. Es posible que los administradores no reconozcan que esto permite que los usuarios con privilegios en espacios de nombres que no sean de Kyverno creen excepciones. Esta vulnerabilidad se solucionó en la versión 1.13.0.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-48921 changed 2024-10-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-qjvc-p88j-j9rm changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3230 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-48921 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-KYVERNO-2024-48921 changed 2026-09-08Apache-2.0