Skip to content
FlawDB
Sign in

GHSA-hm5x-4x3m-4w8m

UNSCORED

`openssl-tls` trusts OpenSSL's default CA store in addition to the configured cluster CA

Also known as RUSTSEC-2026-0600

Mitigation

  • Upgrade kube-client to one of 4.2.1, 5.2.0 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package kube-client (>= 0.64.0, < 4.2.1; >= 5.0.0, < 5.2.0)

Vulnerability facts

Affected
kube-client >= 0.64.0, < 4.2.1; >= 5.0.0, < 5.2.0
Fixed in
4.2.1, 5.2.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

Description

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 `ClientBuilder::try_from(Config)` whenever they select OpenSSL, by the `ConfigExt::openssl_https_connector`, `openssl_https_connector_with_connector` and `openssl_ssl_connector_builder` methods even when `rustls-tls` is also enabled, and since 4.2.0 for TLS to an `https://` proxy. Which connector the constructors select depends on the version. Since 0.86.0, `rustls-tls` is the default and takes precedence when both features are enabled. From 0.71.0 to 0.85.x, `openssl-tls` was a default feature of `kube` (and of `kube-client` up to 0.82.2) and took precedence over `rustls-tls`. The `kube` crate re-exports `kube-client`, so the same `kube` versions are affected. The flaw was corrected in 5.2.0 and 4.2.1 by installing a certificate store that holds only the configured root certificates. After upgrading, an `https://` proxy or a CA bundle that relied on OpenSSL's default store may need its CA added to the kubeconfig CA bundle. On older versions, switching the client to the `rustls-tls` connector avoids the issue.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io kube-client>= 0.64.0, < 4.2.1; >= 5.0.0, < 5.2.04.2.1, 5.2.0osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by GHSA-hm5x-4x3m-4w8m. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/GHSA-hm5x-4x3m-4w8m.md
Affected: kube-client >= 0.64.0, < 4.2.1; >= 5.0.0, < 5.2.0
Fixed in: 4.2.1, 5.2.0

Steps:
1. Search this machine and project for kube-client (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is GHSA-hm5x-4x3m-4w8m being exploited?

There is no confirmed exploitation: GHSA-hm5x-4x3m-4w8m is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is GHSA-hm5x-4x3m-4w8m?

It has no CVSS score yet. Unknown.

Which versions are affected by GHSA-hm5x-4x3m-4w8m?

kube-client >= 0.64.0, < 4.2.1; >= 5.0.0, < 5.2.0.

Is there a fix for GHSA-hm5x-4x3m-4w8m?

Yes. Fixed in 4.2.1, 5.2.0. Upgrade kube-client to one of 4.2.1, 5.2.0 (or later in the same release line).

How do I check if I'm affected by GHSA-hm5x-4x3m-4w8m?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors