GHSA-m23h-6mwm-39m8
Kong Ingress Controller for Kubernetes (KIC): Cross-namespace TLS Secret Exfiltration in Gateways with GatewayClass missing `konghq.com/gatewayclass-unmanaged: 'true'` annotation
GHSA-m23h-6mwm-39m8 is a medium vulnerability (CVSS 5.6) in github.com/kong/kubernetes-ingress-controller, published May 19, 2026. No source lists public exploit code. Fixed in github.com/kong/kubernetes-ingress-controller/v3 3.5.7.
- Severity
- 5.6 MediumCVSS 4.0, GitHub Advisories
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
Description
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:
- You are using Kong Ingress Controller with the Gateway API.
- Your
GatewayClassis operating in managed mode (default behavior, no unmanaged annotation). - KIC is configured to watch multiple namespaces (multi-tenant environment).
- Users have RBAC permissions to
createorupdategateways.gateway.networking.k8s.ioin their own namespaces.
You are not affected if any of this:
- You only use KIC for
Ingressresources (not Gateway API). - Your
GatewayClassuses thekonghq.com/gateway-unmanagedannotation. - KIC is restricted via RBAC or configuration to only watch a single namespace.
- You have strictly limited Gateway creation/modification permissions to trusted cluster administrators only.
Mitigation
- Add unmanaged gateway annotation: add the
konghq.com/gateway-unmanagedannotation to yourGatewayClass
Additional best practicies
- Restrict Gateway RBAC: Limit the ability to create or modify Gateway resources to high-trust administrative users until a patch is applied.
- Namespace Isolation: If possible, limit the namespaces KIC is permitted to watch using the
WATCH_NAMESPACEenvironment 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):
- 3.4.14
- 3.5.7
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
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/kong/kubernetes-ingress-controller/v3Go | 3.5.0 to 3.5.6 | 3.5.7 |
github.com/kong/kubernetes-ingress-controller/v3Go | through 3.4.13 | 3.4.14 |
github.com/kong/kubernetes-ingress-controller/v2Go | through 2.12.8 | None known |
github.com/kong/kubernetes-ingress-controllerGo | through 1.3.4 | None known |
github.com/kong/kubernetes-ingress-controller/v3Go | 3.5.0 up to 3.5.7 | 3.5.7 |
github.com/kong/kubernetes-ingress-controller/v3Go | before 3.4.14 | 3.4.14 |
github.com/kong/kubernetes-ingress-controllerGo | All versions | None known |
github.com/kong/kubernetes-ingress-controller/v2Go | All versions | None known |
github.com/kong/kubernetes-ingress-controller/v3Go | before 3.4.14, 3.5.0 up to 3.5.7 | 3.4.143.5.7 |
What each source reports
GitHub Advisories Score used 5.6
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:
- You are using Kong Ingress Controller with the Gateway API.
- Your
GatewayClassis operating in managed mode (default behavior, no unmanaged annotation). - KIC is configured to watch multiple namespaces (multi-tenant environment).
- Users have RBAC permissions to
createorupdategateways.gateway.networking.k8s.ioin their own namespaces.
You are not affected if any of this:
- You only use KIC for
Ingressresources (not Gateway API). - Your
GatewayClassuses thekonghq.com/gateway-unmanagedannotation. - KIC is restricted via RBAC or configuration to only watch a single namespace.
- You have strictly limited Gateway creation/modification permissions to trusted cluster administrators only.
Mitigation
- Add unmanaged gateway annotation: add the
konghq.com/gateway-unmanagedannotation to yourGatewayClass
Additional best practicies
- Restrict Gateway RBAC: Limit the ability to create or modify Gateway resources to high-trust administrative users until a patch is applied.
- Namespace Isolation: If possible, limit the namespaces KIC is permitted to watch using the
WATCH_NAMESPACEenvironment 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):
- 3.4.14
- 3.5.7
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
- Record
GHSA-m23h-6mwm-39m8- CVSS 4.0
- 5.6 Medium
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 - Weakness
- CWE-200
- Updated
- 2026-11-02
OSV 5.6
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:
- You are using Kong Ingress Controller with the Gateway API.
- Your
GatewayClassis operating in managed mode (default behavior, no unmanaged annotation). - KIC is configured to watch multiple namespaces (multi-tenant environment).
- Users have RBAC permissions to
createorupdategateways.gateway.networking.k8s.ioin their own namespaces.
You are not affected if any of this:
- You only use KIC for
Ingressresources (not Gateway API). - Your
GatewayClassuses thekonghq.com/gateway-unmanagedannotation. - KIC is restricted via RBAC or configuration to only watch a single namespace.
- You have strictly limited Gateway creation/modification permissions to trusted cluster administrators only.
Mitigation
- Add unmanaged gateway annotation: add the
konghq.com/gateway-unmanagedannotation to yourGatewayClass
Additional best practicies
- Restrict Gateway RBAC: Limit the ability to create or modify Gateway resources to high-trust administrative users until a patch is applied.
- Namespace Isolation: If possible, limit the namespaces KIC is permitted to watch using the
WATCH_NAMESPACEenvironment 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):
- 3.4.14
- 3.5.7
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
- Record
GHSA-m23h-6mwm-39m8- CVSS 4.0
- 5.6 Medium
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 - Weakness
- CWE-200
- Updated
- 2026-11-02
OSVGO-2026-5485No score
Kong Ingress Controller for Kubernetes (KIC): Cross-namespace TLS Secret Exfiltration in Gateways with GatewayClass missing `konghq.com/gatewayclass-unmanaged: 'true'` annotation in github.com/kong/kubernetes-ingress-controller
Kong Ingress Controller for Kubernetes (KIC): Cross-namespace TLS Secret Exfiltration in Gateways with GatewayClass missing konghq.com/gatewayclass-unmanaged: 'true' annotation in github.com/kong/kubernetes-ingress-controller
- Record
GO-2026-5485- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/Kong/kubernetes-ingress-controller/security/advisories/GHSA-m23h-6mwm-39m8
github.com/Kong/kubernetes-ingress-controller/pull/7920
github.com/Kong/kubernetes-ingress-controller/pull/7921
github.com/Kong/kubernetes-ingress-controller/pull/7922
github.com/advisories/GHSA-m23h-6mwm-39m8
github.com/Kong/kubernetes-ingress-controller