Improper Authorization Affecting github.com/kyverno/kyverno/cmd/internal package, versions <1.13.0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMKYVERNOKYVERNOCMDINTERNAL-8310958
- published 31 Oct 2024
- disclosed 30 Oct 2024
- credit Joel Eidsath
Introduced: 30 Oct 2024
New CVE-2024-48921 Open this link in a new tabHow to fix?
Upgrade github.com/kyverno/kyverno/cmd/internal
to version 1.13.0 or higher.
Overview
Affected versions of this package are vulnerable to Improper Authorization due to the default configuration that allows the creation of PolicyException
objects in any namespace. An attacker with privileges to non-kyverno namespaces can bypass intended security policies by exploiting this misconfiguration.
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