Medium, CVSS 6.8crates.ioPublished
openssl-tls trusts OpenSSL's default CA store in addition to the configured cluster CA
GHSA-hm5x-4x3m-4w8m
- Affected
- crates.io kube-client >= 0.64.0, < 4.2.1; >= 5.0.0, < 5.2.0
- Fixed in
- 4.2.15.2.0· Vendor fix available
- Issue
- With the `openssl-tls` connector, configuring a cluster CA (`certificate-authority`, `certificate-authority-data`, or the in-cluster `ca.crt`) did not limit which server certificates were trusted. The connector started from OpenSSL's default verify paths and added the configured roots to that store, so a server certificate chaining to any root in OpenSSL's default store passed trust validation. The certificate still had to be valid for the server name the client connects to. client-go and the `rustls-tls` connector trust only the configured CA. An attacker on the path between the client and the apiserver who presents such a certificate, for example from a TLS inspection proxy whose root is installed on the machine, could complete the handshake and receive the client's requests, including bearer tokens. This advisory covers the `openssl-tls` connector, added in 0.64.0, when a cluster CA is configured. The connector is used by `Client::try_default()`, `Client::try_from(Config)` and…
Recommended action: Upgrade to 5.2.0 or 4.2.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.