CVE-2024-48921: Kyverno's PolicyException objects can be created in any namespace by default

Published Oct 29, 2024
·
Updated

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

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/kyverno/kyverno<1.13.0
1.13.0
Nirmata Kyverno Go<1.13.0

Event History

Oct 29, 2024
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
DescriptionWeakness
Advisory Published
via GitHub·02:44 PM
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-48921?

CVE-2024-48921 has been classified with a severity that may allow privilege escalation in Kubernetes environments.

2

How does CVE-2024-48921 affect Kyverno policies?

CVE-2024-48921 allows PolicyExceptions to override the "disallow-privileged-containers" ClusterPolicy in any namespace.

3

What versions of Kyverno are affected by CVE-2024-48921?

CVE-2024-48921 affects Kyverno versions up to but not including 1.13.0.

4

How can I mitigate the risks associated with CVE-2024-48921?

To mitigate CVE-2024-48921, upgrade your Kyverno instance to version 1.13.0 or later.

5

What should administrators be aware of regarding CVE-2024-48921?

Administrators should be aware that CVE-2024-48921 allows users to create PolicyExceptions across random namespaces, potentially bypassing security policies.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203