MediumGHSA-hq4m-4948-64ccCVE-2023-34091GO-2023-1819

Kyverno resource with a deletionTimestamp may allow policy circumvention

Published 5 Jun 2023 · Updated 7 Aug 2026

Is your project on an affected github.com/kyverno/kyverno?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.10.0
Fixed in
1.10.0
Update to the fixed version for your release line, for example:go get github.com/kyverno/kyverno@v1.10.0

Details

Impact

In versions of Kyverno prior to 1.10.0, resources which have the deletionTimestamp field defined can bypass validate, generate, or mutate-existing policies, even in cases where the validationFailureAction field is set to Enforce.

This situation occurs as resources pending deletion were being consciously exempted by Kyverno, as a way to reduce processing load as policies are typically not applied to objects which are being deleted.

However, this could potentially result in allowing a malicious user to leverage the Kubernetes finalizers feature by setting a finalizer which causes the Kubernetes API server to set the deletionTimestamp and then not completing the delete operation as a way to explicitly to bypass a Kyverno policy.

Note that this is not applicable to Kubernetes Pods but, as an example, a Kubernetes Service resource can be manipulated using an indefinite finalizer to bypass policies.

Patches

This is resolved in Kyverno 1.10.0.

Workarounds

There is no known workaround.

References

_Are there any links users can visit to find out more?_

Is GHSA-hq4m-4948-64cc in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/kyverno/kyverno, and gives you the command that fixes it.

More advisories for github.com/kyverno/kyverno

  • LowCVE-2026-54523Kyverno's NamespacedGeneratingPolicy generator.apply() namespace argument unvalidated -- background controller creates RoleBindings in any namespace including kube-system in github.com/kyverno/kyverno · 27 Aug 2026
  • CriticalCVE-2026-54523Kyverno's NamespacedGeneratingPolicy generator.apply() namespace argument unvalidated -- background controller creates RoleBindings in any namespace including kube-system · 26 Aug 2026
  • LowCVE-2026-40868kyverno apicall servicecall implicit bearer token injection leaks kyverno serviceaccount token in github.com/kyverno/kyverno · 25 Jun 2026
  • LowCVE-2026-84196Kyverno has unrestricted outbound requests in Kyverno apiCall enabling SSRF in github.com/kyverno/kyverno · 25 Jun 2026
  • LowCVE-2026-4789Kyverno has SSRF via CEL http.Get/http.Post in NamespacedValidatingPolicy allows cross-namespace data access in github.com/kyverno/kyverno · 25 Jun 2026
  • LowCVE-2026-41068Kyverno: Cross-Namespace Read Bypasses RBAC Isolation (CVE-2026-22039 Incomplete Fix) in github.com/kyverno/kyverno · 25 Jun 2026
All 47 advisories for github.com/kyverno/kyverno

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.