{"id":"CVE-2023-34091","state":"PUBLISHED","title":"Kyverno resource with a deletionTimestamp may allow policy circumvention","description":"Kyverno is a policy engine designed for Kubernetes. 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. This is resolved in Kyverno 1.10.0. There is no known workaround.","publishedAt":"2023-06-01T16:24:53.920Z","updatedAt":"2025-01-08T21:32:51.451Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["kyverno kyverno"],"affected":[{"vendor":"kyverno","product":"kyverno","versions":[{"version":"< 1.10.0","status":"affected"}]}],"references":["https://github.com/kyverno/kyverno/security/advisories/GHSA-hq4m-4948-64cc","https://github.com/kyverno/kyverno/releases/tag/v1.10.0"],"weaknesses":["CWE-285"],"ingestedAt":"2026-10-29T20:06:00.499Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/34xxx/CVE-2023-34091.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-34091","state":"PUBLISHED","datePublished":"2023-06-01T16:24:53.920Z","dateUpdated":"2025-01-08T21:32:51.451Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-05-25T21:56:51.244Z"},"containers":{"cna":{"title":"Kyverno resource with a deletionTimestamp may allow policy circumvention","descriptions":[{"lang":"en","value":"Kyverno is a policy engine designed for Kubernetes. 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. This is resolved in Kyverno 1.10.0. There is no known workaround."}],"affected":[{"vendor":"kyverno","product":"kyverno","versions":[{"version":"< 1.10.0","status":"affected"}]}],"references":[{"url":"https://github.com/kyverno/kyverno/security/advisories/GHSA-hq4m-4948-64cc","name":"https://github.com/kyverno/kyverno/security/advisories/GHSA-hq4m-4948-64cc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kyverno/kyverno/releases/tag/v1.10.0","name":"https://github.com/kyverno/kyverno/releases/tag/v1.10.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-285","lang":"en","description":"CWE-285: Improper Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-06-01T16:24:53.920Z"},"source":{"advisory":"GHSA-hq4m-4948-64cc","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/kyverno/kyverno/security/advisories/GHSA-hq4m-4948-64cc","name":"https://github.com/kyverno/kyverno/security/advisories/GHSA-hq4m-4948-64cc","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/kyverno/kyverno/releases/tag/v1.10.0","name":"https://github.com/kyverno/kyverno/releases/tag/v1.10.0","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T16:01:53.601Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-08T21:32:38.963338Z","id":"CVE-2023-34091","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-08T21:32:51.451Z"}}]}}}