Menu

One '?' Gave Kyverno a CVSS 10 Bug. Your URL Checks May Have It Too
📰

One '?' Gave Kyverno a CVSS 10 Bug. Your URL Checks May Have It Too

DEV Community: kubernetes·Lycore Development·4 days ago
#XqIwknct
#devtokubernetes#devto#dev#path#namespaces
Long article (1749 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.