Kyverno's PolicyException objects can be created in any namespace by default
cve-program · CVE-2024-48921
PublishedKyverno 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.
Read the publisher's advisoryeuvd · EUVD-2024-3117
PublishedKyverno 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.
Read the publisher's advisorynvd · CVE-2024-48921
PublishedKyverno 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.
Read the publisher's advisoryosv · GHSA-qjvc-p88j-j9rm
Published### 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
Read the publisher's advisoryosv · GO-2024-3230
PublishedKyverno's PolicyException objects can be created in any namespace by default in github.com/kyverno/kyverno
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2024-48921 · CVE overview and exploitation status
cve-program · CVE-2024-48921
euvd · EUVD-2024-3117
nvd · CVE-2024-48921
osv · GHSA-qjvc-p88j-j9rm
- https://github.com/kyverno/kyverno/security/advisories/GHSA-qjvc-p88j-j9rm
- https://nvd.nist.gov/vuln/detail/CVE-2024-48921
- https://github.com/kyverno/kyverno
osv · GO-2024-3230
Related changes
Linked by CVE identifierNo related changes are available here.