Kyverno privilege escalation in context.apiCall path validation
kyverno
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| kyverno kyverno |
|
|
Original description
Kyverno from 1.19.1 before 1.19.2 validates a Policy's context.apiCall urlPath after cleaning it but executes the raw path, whose fragment or query the Kubernetes client discards. A namespace-scoped user who can create a Policy can hide ../ segments behind # or ? to reach cluster-scoped endpoints with Kyverno's ServiceAccount, gaining cluster admin.
From the CVE record · VulnCheck