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 package | Versions | Reported by |
|---|---|---|
| kyverno kyverno | < 1.13.0, before 1.13.0 | CVE List |
| github.com/kyverno/kyverno (Go) | before 1.13.0 | GitHub Advisory Database, Go Vulnerability Database |
| nirmata kyverno | before 1.13.0 | NVD |
| kyverno (Bitnami) | before 1.13.0 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 2.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
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
- Administrator creates "disallow-privileged-containers" ClusterPolicy that applies to resources in the namespace "ubuntu-restricted"
- Cluster user creates a PolicyException object for "disallow-privileged-containers" in namespace "ubuntu-restricted"
- Cluster user creates a pod with a privileged container in "ubuntu-restricted"
- 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
| https://github.com/kyverno/kyverno/security/advisories/GHSA-qjvc-p88j-j9rm | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-48921 | advisory, web | |
| https://github.com/kyverno/kyverno | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-48921 changed 2024-10-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qjvc-p88j-j9rm changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3230 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-48921 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-KYVERNO-2024-48921 changed 2026-09-08 | Apache-2.0 |