On November 24, Akamai published the story behind a CVSS 10.0 bug in Kyverno, the CNCF policy engine a lot of teams use to keep Kubernetes tenants inside their own namespaces. The fix shipped in Kyverno 1.19.2 . The cause was a single character: ? .
A user who was only allowed to write policies in the default namespace could make Kyverno read ConfigMaps from kube-system , and then read the stolen data back out of an admission error message. Akamai says 4% of the enterprise networks in its telemetry were running vulnerable Kyverno instances.
I don't think the interesting part is Kubernetes. The interesting part is that the validator and the HTTP client disagreed about what the URL meant, and that is a bug I can write in Python in about four lines. So I did, and then I wrote the version I'd actually ship.
What happened, in plain terms
Kyverno policies can fetch extra data during admission with an apiCall block.…