github.com/kong/kubernetes-ingress-controller/v3
Affected
- introduced
3.5.0, fixed3.5.7(semver)
Fixed versions
3.5.7
Fix
- Fixed version
3.5.7go get github.com/kong/kubernetes-ingress-controller/[email protected]
Advisory
Also known as: GO-2026-5485
Kong Ingress Controller for Kubernetes (KIC): Cross-namespace TLS Secret Exfiltration in Gateways with GatewayClass missing konghq.com/gatewayclass-unmanaged: 'true' annotation
Summary
A vulnerability in the Kong Ingress Controller (KIC) allows for the unauthorized exfiltration of TLS certificates and private keys across Kubernetes namespace boundaries. In "managed" mode (where the GatewayClass lacks an unmanaged annotation), the Gateway TLS translator skips critical status checks. This bypass allows the translator to fetch Secrets from any namespace KIC watches, even when a ReferenceGrant explicitly denies access or is missing.
An actor with RBAC permissions to create or modify Gateways in a low-privileged namespace can reference a Secret in a high-privileged namespace, causing KIC to "leak" that Secret's sensitive private key material into the Kong dataplane configuration.
Am I affected?
You are affected if all of these hold:
GatewayClass is operating in managed mode (default behavior, no unmanaged annotation).create or update gateways.gateway.networking.k8s.io in their own namespaces.You are not affected if any of this:
Ingress resources (not Gateway API).GatewayClass uses the konghq.com/gateway-unmanaged annotation.Mitigation
konghq.com/gateway-unmanaged annotation to your GatewayClassAdditional best practicies
WATCH_NAMESPACE environment variable or specific RBAC RoleBindings.Fix
The fix mandates ReferenceGrant validation for all cross-namespace certificate references. By requiring a Programmed: True listener status, the translator now strictly authorizes external Secret access while maintaining default access for same-namespace certificates, effectively closing the exfiltration vector.
Fixed in #7920, with backports to supported release branches in #7921 and #7922.
Upgrade to one of the following patched versions (or later):
CVSS
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:P = 5.6 Medium
Medium Basis: The source's own band: MODERATE
3.5.0, fixed 3.5.7 (semver)3.5.7
3.5.7go get github.com/kong/kubernetes-ingress-controller/[email protected]0, fixed 3.4.14 (semver)3.4.14
3.4.14go get github.com/kong/kubernetes-ingress-controller/[email protected]0, last affected 2.12.8 (semver)None listed
No fixed version is listed.
0, last affected 1.3.4 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0