CVE-2025-46342 Kyverno vulnerable to bypass of policy rules that use namespace selectors in match statements

High 8.6 Published Updated

Attackers with Kubernetes API access can bypass security policies by exploiting a logic error in namespace selector processing, allowing unauthorized operations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-46342?

CVE-2025-46342 is a high-severity vulnerability in kyverno, published on 30 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to versions 1.13.5 and 1.14.0, it may happen that policy rules using namespace selector(s) in their match statements are mistakenly not applied during admission review request processing due to a missing error propagation in function `GetNamespaceSelectorsFromNamespaceLister` in `pkg/utils/engine/labels.go`. As a consequence, security-critical mutations and validations are bypassed, potentially allowing attackers with K8s API access to perform malicious operations. This issue has been patched in versions 1.13.5 and 1.14.0.

Weakness: CWE-1287

Which versions are affected by CVE-2025-46342?

6 open source packages ship an affected version, including github.com/kyverno/kyverno and kyverno. It affects 1 product.

PackageAffectedFixed in
github.com/kyverno/kyverno GoAll versions1.13.5, 1.14.0
github.com/kyverno/kyverno GoAll versions1.13.5
github.com/kyverno/kyverno GoAll versions1.13.5
github.com/kyverno/kyverno GoFrom 1.14.0-alpha.11.14.0
github.com/kyverno/kyverno GoFrom 1.14.0-alpha.11.14.0
kyverno BitnamiAll versions1.13.5

Products include Kyverno Kyverno.

How do I fix CVE-2025-46342?

Upgrade github.com/kyverno/kyverno to a fixed version for your release line: 1.13.5 or 1.14.0.

Is CVE-2025-46342 being exploited?

There is no known exploitation of CVE-2025-46342 in the wild and no public exploit code.

Sources

Also known as BIT-kyverno-2025-46342, CLEANSTART-2026-SI37771, CLEANSTART-2026-VJ98320, GHSA-jrr2-x33p-6hvc, GO-2025-3652, MINI-46pj-wj5h-xmgc and 4 more.

Is CVE-2025-46342 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free