Description
Kyverno versions v1.9.0 through v1.12.7 contain a policy exception handling flaw. When a policy in enforce mode is combined with two PolicyExceptions, the less restrictive exception takes precedence, allowing an attacker to bypass the policy by crafting a resource name that matches the second exception's name pattern (e.g., '*ingress*'). This can be used to circumvent policies such as one blocking hostPath volumes. Fixed in v1.13.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kyverno | kyverno | < 1.13.0 | 1.13.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/kyverno/kyverno | >= 1.9.0, < 1.13.0 | 1.13.0 | GHSA-gg4x-fgg2-h9w9 |
References
- GitHub Security Advisory (GHSA-gg4x-fgg2-h9w9) vendor-advisory
- VulnCheck Advisory: Kyverno before v1.13.0 Policy Bypass via Multiple Exceptions third-party-advisory