Bypassing Kyverno Policies via Double Policy Exceptions
### Summary If a cluster has a `Kyverno` policy in enforce mode and there are two exceptions, this allows the policy to be bypassed, even if the first exception is more restrictive than the second. ### Details The following policy was applied: ```yaml apiVersion: kyverno.io/v1 kind: ClusterPolicy metadata: name: disallow-host-path annotations: policies.kyverno.io/title: Disallow hostPath policies.kyverno.io/category: Pod Security Standards (Baseline) policies.kyverno.io/severity: medium policies.kyverno.io/subject: Pod,Volume kyverno.io/kyverno-version: 1.6.0 kyverno.io/kubernetes-version: "1.22-1.23" policies.kyverno.io/description: >- HostPath volumes let Pods use host directories and volumes in containers. Using host resources can be used to access shared data or escalate privileges and should not be allowed. This policy ensures no hostPath volumes are in use. spec: validationFailureAction: Enforce background: true rules: - name: host-path match: any: - resources: kinds: - Pod validate: message: >- HostPath volumes are forbidden. The field spec.volumes[*].hostPath must be unset. pattern: spec: =(volumes): - X(hostPath): "null" ``` And two exceptions: ```yaml apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: disallow-host-path-exception namespace: kyverno spec: exceptions: - policyName: disallow-host-path ruleNames: - host-path match: any: - resources: kinds: - DaemonSet - Deployment - Job - StatefulSet - ReplicaSet - ReplicationController - Pod - CronJob
GHSA-gg4x-fgg2-h9w9
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-gg4x-fgg2-h9w9
github.com/kyverno/kyverno
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.13.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.9.0"
},
{
"fixed": "1.13.0"
}
]
}
],
"package": {
"name": "github.com/kyverno/kyverno",
"purl": "pkg:golang/github.com/kyverno/kyverno",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-gg4x-fgg2-h9w9/GHSA-gg4x-fgg2-h9w9.json",
"last_known_affected_version_range": "<= 1.12.7"
}
}
]- Related CVEs
- CVE-2026-84200
Source reference:
/aliases
Publisher severity
critical
Source reference: /database_specific/severity
- Event
- #15254 · Revision 1
- Added to Heist Feed
- Publisher date
GO-2026-4285
Revision 1
Bypassing Kyverno Policies via Double Policy Exceptions in github.com/kyverno/kyverno
Bypassing Kyverno Policies via Double Policy Exceptions in github.com/kyverno/kyverno
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GO-2026-4285
github.com/kyverno/kyverno
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.13.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.9.0"
},
{
"fixed": "1.13.0"
}
]
}
],
"package": {
"name": "github.com/kyverno/kyverno",
"purl": "pkg:golang/github.com/kyverno/kyverno",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-4285.json"
},
"ecosystem_specific": {}
}
]- Related CVEs
- CVE-2026-84200
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #15255 · Revision 1
- Added to Heist Feed
- Publisher date